Total Complexity | 8 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Changes | 10 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
12 | class Interpreter implements InterpreterInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | private $registry; |
||
18 | |||
19 | /** |
||
20 | * @param AlbumInterface $item |
||
21 | */ |
||
22 | public function addAlbumToRegistry(AlbumInterface $item): void |
||
23 | { |
||
24 | $this->registry[] = $item; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @param string $input |
||
29 | */ |
||
30 | public function interpret(string $input): void |
||
38 | } |
||
39 | } |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @param array $input |
||
44 | * @param $item |
||
45 | */ |
||
46 | private function getDataFromRegistry(array $input, AlbumInterface $item): void |
||
59 | } |
||
60 | } |
||
61 |