/** * Returns new or existing Singleton instance * @return Singleton */ public static final function getInstance() { if (!isset(self::$instance)) { $c = __CLASS__; self::$instance = new $c(); } return self::$instance; }
/** * Returns new or existing Singleton instance * @return Singleton */ public static final function getInstance() { if (!isset(self::$instance)) { $c = __CLASS__; self::$instance = new $c(); } return self::$instance; }