| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | class AnotherRegistry implements AnotherRegistryInterface |
||
| 13 | { |
||
| 14 | private array $data; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Sets data |
||
| 18 | * --------- |
||
| 19 | * Устанавливает данные |
||
| 20 | * |
||
| 21 | * @param string $item |
||
| 22 | * @return void |
||
| 23 | */ |
||
| 24 | public function setData(string $item) |
||
| 25 | { |
||
| 26 | $this->data[] = $item; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Receives data |
||
| 31 | * ------------- |
||
| 32 | * Получает данные |
||
| 33 | * |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | public function getData(): array |
||
| 39 | } |
||
| 40 | } |
||
| 41 |