1 | <?php |
||
20 | class DirectProcessingDriver implements SendDriverInterface, WorkerInterface, LoggerAwareInterface |
||
21 | { |
||
22 | use \Psr\Log\LoggerAwareTrait; |
||
23 | |||
24 | /** |
||
25 | * Processor factory. |
||
26 | * |
||
27 | * @var ProcessorFactoryInterface |
||
28 | */ |
||
29 | private $processorFactory; |
||
30 | |||
31 | /** |
||
32 | * Class constructor. |
||
33 | * |
||
34 | * @param ProcessorFactoryInterface $processorFactory |
||
35 | */ |
||
36 | 6 | public function __construct(ProcessorFactoryInterface $processorFactory, LoggerInterface $logger = null) |
|
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | 4 | public function send(CommandInterface $command) |
|
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | 6 | public function process($command) |
|
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | 5 | public function getProcessor(CommandInterface $command) |
|
81 | |||
82 | /** |
||
83 | * {@inheritdoc} |
||
84 | */ |
||
85 | 6 | public function setProcessorFactory(ProcessorFactoryInterface $processorFactory) |
|
89 | } |
||
90 |