protected function getLogger() : LoggerInterface { if ($this->logger !== null) { return $this->logger; } return new NullLogger(); }