Exemple #1
0
 /**
  * @return SingletonTest
  */
 public static function getInstance()
 {
     // We need to check if the $instance is set???
     if (!isset(self::$instance)) {
         // If it isn't set, then we need to set it, to ???
         self::$instance = new self();
     }
     // return the instantiated, singleton, instance
     return self::$instance;
 }