| 1 | <?php declare(strict_types=1); |
||
| 8 | final class Client |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var ContainerInterface |
||
| 12 | */ |
||
| 13 | private $container; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var CommandBus |
||
| 17 | */ |
||
| 18 | private $commandBus; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Client constructor. |
||
| 22 | * @param ContainerInterface $container |
||
| 23 | * @param CommandBus $commandBus |
||
| 24 | */ |
||
| 25 | public function __construct(ContainerInterface $container, CommandBus $commandBus) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return ContainerInterface |
||
| 33 | */ |
||
| 34 | public function getContainer(): ContainerInterface |
||
| 38 | |||
| 39 | public function handle($command) |
||
| 43 | } |
||
| 44 |