| Total Complexity | 5 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class AsyncCommandBus implements CommandBus |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Wrapped command bus. |
||
| 24 | * |
||
| 25 | * @var CommandBus |
||
| 26 | */ |
||
| 27 | private $wrappedCommandBus; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Command queue. |
||
| 31 | * |
||
| 32 | * @var CommandQueue |
||
| 33 | */ |
||
| 34 | private $queue; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Command discriminator. |
||
| 38 | * |
||
| 39 | * @var CommandDiscriminator |
||
| 40 | */ |
||
| 41 | private $discriminator; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * AsyncCommandBus constructor. |
||
| 45 | * |
||
| 46 | * @param CommandBus $wrappedCommandBus |
||
| 47 | * @param CommandQueue $queue |
||
| 48 | * @param CommandDiscriminator $discriminator |
||
| 49 | */ |
||
| 50 | public function __construct( |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * {@inheritdoc} |
||
| 62 | * |
||
| 63 | * @throws \Gears\CQRS\Async\Exception\CommandQueueException |
||
| 64 | */ |
||
| 65 | final public function handle(Command $command): void |
||
| 80 |