| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 32 | public function getHandlerForCommand($commandName) |
||
| 33 | { |
||
| 34 | if (!isset($this->handlers[$commandName]) || !is_callable($this->handlers[$commandName])) { |
||
| 35 | throw MissingHandlerException::forCommand($commandName); |
||
| 36 | } |
||
| 37 | |||
| 38 | /** @var callable $handler */ |
||
| 39 | $handler = $this->handlers[$commandName]; |
||
| 40 | |||
| 41 | return $handler(); |
||
| 42 | } |
||
| 44 |