| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class CommandHandlerLocator |
||
| 13 | { |
||
| 14 | /** @var ContainerInterface */ |
||
| 15 | private $creator; |
||
| 16 | |||
| 17 | 2 | public function __construct(ContainerInterface $creator) |
|
| 18 | { |
||
| 19 | 2 | $this->creator = $creator; |
|
| 20 | 2 | } |
|
| 21 | |||
| 22 | /** @throws CommandHandlerLocatorException */ |
||
| 23 | 2 | public function locate(HandlerIdentifier $identifier): CommandHandler |
|
| 29 | } |
||
| 30 | |||
| 31 | /** @throws UnregisteredCommandHandlerException */ |
||
| 32 | 2 | private function ensureHandlerExists(string $stringIdentifier) |
|
| 41 |