Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
18 | 3 | protected function process(BusQueCommandInterface $command): array |
|
19 | { |
||
20 | 3 | $baseCommand = $command->getCommand(); |
|
21 | 3 | $queueName = $this->implementation->getQueueResolver() |
|
22 | 3 | ->resolveQueueName($baseCommand); |
|
23 | 3 | $commandId = $command->getId() ?: $this->implementation->getCommandIdGenerator() |
|
24 | 3 | ->generateId($baseCommand); |
|
25 | 3 | $serialized = $this->implementation->getCommandSerializer() |
|
26 | 3 | ->serialize($baseCommand); |
|
27 | 3 | return [ $queueName, $commandId, $serialized ]; |
|
28 | } |
||
29 | } |
||
30 |