public static function getInstance() { if (self::$instance === NULL) { self::$instance = new self(); } return self::$instance; }
/** * Provides the properties for the current resource id. * * @return array * The array containing all the properties, not null can be empty. */ public function getProperties() { return ResourceRepository::getInstance()->getResourceFor($this); }