Ejemplo n.º 1
0
 public static function getInstence()
 {
     if (is_null(self::$singleton)) {
         self::$singleton = new Singleton();
     }
     return self::$singleton;
 }
 public static function singleton()
 {
     return parent::singleton(__CLASS__);
 }