| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 67 | public function getCommandsRegistry(string $key = null) |
||
| 68 | { |
||
| 69 | if (isset($key)) { |
||
| 70 | if (array_key_exists($key, $this->commandsRegistry)) { |
||
| 71 | return $this->commandsRegistry[$key]; |
||
| 72 | } |
||
| 73 | |||
| 74 | throw new \InvalidArgumentException('Wrong argument'); |
||
| 75 | } |
||
| 76 | |||
| 77 | return $this->commandsRegistry; |
||
| 78 | } |
||
| 80 |