public static function &getInstance()
 {
     if (self::$instance === null) {
         self::$instance = new self();
     }
     return self::$instance;
 }
示例#2
0
 /**
  * Método estático para pegar a instância da classe:
  *
  * @access public
  * @return Object The instance of this class
  * @static
  */
 public static function &getInstance()
 {
     if (!is_object(self::$instance)) {
         self::$instance = new self();
     }
     return self::$instance;
 }