예제 #1
0
파일: Singleton.php 프로젝트: saj696/pipe
 public static function getInstance()
 {
     if (self::$uniqueInstance === null) {
         self::$uniqueInstance = new self();
     }
     return self::$uniqueInstance;
 }
예제 #2
0
 public static function getInstance()
 {
     if (self::$uniqueInstance === NULL) {
         self::$uniqueInstance = new Singleton();
     }
     return self::$uniqueInstance;
 }