/** * getInstance * Singleton method to return static instance of ResourceManager * @return The static singleton ResourceManager instance */ public static function getInstance() { if (!isset(self::$instance)) { self::$instance = new ResourceManager(); } // if return self::$instance; }