コード例 #1
0
ファイル: singleton 2.php プロジェクト: tgamanov/php-examples
 public static function getInstance()
 {
     if (!self::$obj) {
         self::$obj = new Singleton();
     }
     return self::$obj;
 }