/** * @static * @return DefaultLang */ public static function instance() { if (null === self::$instance) { self::$instance = new Lang(); } return self::$instance; }
public static function instance() { if (!isset(self::$instance)) { //$c = __CLASS__; $c = 'Lang'; self::$instance = new $c(); } return self::$instance; }