public function __construct(LoggerInterface $logger = null) { $this->setLogger($logger ?: new NullLogger()); }