| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 7 | class LaravelLazyLocator extends LaravelLocator |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * Bind a handler instance to receive all commands with a certain class |
||
| 12 | * |
||
| 13 | * @param string $handler Handler to receive class name |
||
| 14 | * @param string $commandClassName Command class e.g. "My\TaskAddedCommand" |
||
| 15 | */ |
||
| 16 | public function addHandler($handler, $commandClassName) |
||
| 20 | }; |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Retrieves the handler for a specified command |
||
| 25 | * |
||
| 26 | * @param string $commandName |
||
| 27 | * |
||
| 28 | * @return object |
||
| 29 | * |
||
| 30 | * @throws MissingHandlerException |
||
| 31 | */ |
||
| 32 | public function getHandlerForCommand($commandName) |
||
| 44 |