public function getLogger(): LoggerInterface
    {
        if ($this->logger === null) {
            $this->setLogger(new NullLogger());
        }
        assert($this->logger instanceof LoggerInterface);
        return $this->logger;
    }
public function getLogger(): LoggerInterface
    {
        if ($this->logger === null) {
            $this->setLogger(new NullLogger());
        }
        assert($this->logger instanceof LoggerInterface);
        return $this->logger;
    }
public function getLogger ( ) : LoggerInterface { if ( $ this -> logger === null ) { $ this -> setLogger ( new NullLogger ( ) ) ; } assert ( $ this -> logger instanceof LoggerInterface ) ; return $ this -> logger ; }
Get the logger object to use.

@return LoggerInterface $logger The logging object
Get the logger object to use .