public static function &getInstance() { if (self::$instance === null) { self::$instance = new self(); } return self::$instance; }
/** * 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; }