Ejemplo n.º 1
0
 public static function getInstance()
 {
     if (self::$uniqueInstance === null) {
         self::$uniqueInstance = new self();
     }
     return self::$uniqueInstance;
 }
Ejemplo n.º 2
0
 public static function getInstance()
 {
     if (self::$uniqueInstance === NULL) {
         self::$uniqueInstance = new Singleton();
     }
     return self::$uniqueInstance;
 }