Пример #1
0
 public static function getInstance()
 {
     if (!self::$_instance instanceof TestClass) {
         echo "Hi there!" . '<br />';
         self::$_instance = new TestClass();
     }
     return self::$_instance;
 }