| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class CommandBus |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var CommandHandlerLocator |
||
| 14 | */ |
||
| 15 | private $handlerLocator; |
||
| 16 | |||
| 17 | 1 | public function __construct(CommandHandlerLocator $locator) |
|
| 18 | { |
||
| 19 | 1 | $this->handlerLocator = $locator; |
|
| 20 | 1 | } |
|
| 21 | |||
| 22 | /** |
||
| 23 | * @throws CommandHandlerException |
||
| 24 | * @throws CommandHandlerLocatorException |
||
| 25 | */ |
||
| 26 | 1 | public function dispatch(Command $command): void |
|
| 31 | 1 | } |
|
| 32 | } |
||
| 33 |