Helper\Logger::getInstance PHP Méthode

getInstance() static public méthode

static public getInstance ( )
    static function getInstance()
    {
        if (!self::$_instance instanceof self) {
            self::$_instance = new self();
        }
        return self::$_instance;
    }

Usage Example

Exemple #1
0
 public function notify()
 {
     $log = Logger::getInstance();
     $log->debug('ALIPAY Notify');
     echo 'success';
     exit;
 }
All Usage Examples Of Helper\Logger::getInstance