1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32:
<?php
namespace Vendor\ExampleVendor;
class ExampleVendorModel extends \Model {
/**
* @var ExampleVendorModel The class instance.
* @internal
*/
protected static $instance;
/**
* Returns a MenuModel instance, creating it if it did not exist.
* @return ExampleVendorModel
*/
public static function singleton() {
if (!self::$instance) {
$v = __CLASS__;
self::$instance = new $v;
}
return self::$instance;
}
public function getMenu() {
return "I'm a stupid menu";
}
public function getFooter() {
return "Footer :)";
}
}