Ejemplo n.º 1
0
 static function getInstance()
 {
     // TODO: mind the casing
     if (self::$instance == NULL) {
         self::$instance = new Thread();
     }
     return self::$instance;
 }
Ejemplo n.º 2
0
 public static function getInstance()
 {
     // TODO: mind the casing
     if (self::$instance == null) {
         self::$instance = new self();
     }
     return self::$instance;
 }