Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 8 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | public function interpret(string $input): array |
||
26 | { |
||
27 | $input = explode(' ', $input); |
||
28 | |||
29 | foreach ($input as $value) { |
||
30 | if (is_numeric($value)) { |
||
31 | return $this->getDataFromRegistry($input, $this->registryData[$value - 1]); |
||
32 | } |
||
33 | } |
||
34 | |||
35 | throw new \InvalidArgumentException("No id specified"); |
||
36 | } |
||
60 |