public function __construct(ProcessorInterface $processor, LoggerInterface $logger = null) { $this->processor = $processor; $this->logger = $logger; }