| Total Complexity | 4 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class Bus implements CommandHandlerBusFacadeInterface |
||
| 18 | { |
||
| 19 | /** @var CommandBus $bus */ |
||
| 20 | private $bus; |
||
| 21 | |||
| 22 | /** @var array $commands */ |
||
| 23 | private $commands; |
||
| 24 | |||
| 25 | /** @var array $handlers */ |
||
| 26 | private $handlers; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Bus constructor. |
||
| 30 | * @param array $commands |
||
| 31 | * @param array $handlers |
||
| 32 | * I will define business deps by means DC. |
||
| 33 | */ |
||
| 34 | public function __construct( |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @inheritDoc |
||
| 46 | */ |
||
| 47 | public function execute(UseCaseCommand $command) |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return array |
||
| 54 | * Orchestrating service contract, no virtual types allowed |
||
| 55 | */ |
||
| 56 | private function orchestrate() |
||
| 65 |