| Conditions | 4 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 65 | final public function handle(Command $command): void |
||
| 66 | { |
||
| 67 | if (!$command instanceof ReceivedCommand && $this->discriminator->shouldEnqueue($command)) { |
||
| 68 | $this->queue->send($command); |
||
| 69 | |||
| 70 | return; |
||
| 71 | } |
||
| 72 | |||
| 73 | if ($command instanceof ReceivedCommand) { |
||
| 74 | $command = $command->getOriginalCommand(); |
||
| 75 | } |
||
| 76 | |||
| 77 | $this->wrappedCommandBus->handle($command); |
||
| 78 | } |
||
| 80 |