code: public function getLogger() : LoggerInterface
      {
          if (!$this->logger) {
              $logger = new class implements LoggerInterface
              {
                  public function emerg($message, $extra = []) : void {}
                  public function alert($message, $extra = []) : void {}
                  public function crit($message, $extra = []) : void {}
                  public function err($message, $extra = []) : void {}
                  public function warn($message, $extra = []) : void {}
                  public function notice($message, $extra = []) : void {}
                  public function info($message, $extra = []) : void {}
                  public function debug($message, $extra = []) : void {}
              };
              $this->setLogger($logger);
          }
  
          return $this->logger;
      }
docs: Get the logger instance
  
  If no instance is set yet, it will return an instance of
  an anonymous class implemeting LoggerInterface which does nothing.
  
  @return LoggerInterface