| Total Complexity | 7 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class Dictionary |
||
| 11 | { |
||
| 12 | private $lang; |
||
| 13 | |||
| 14 | private $records; |
||
| 15 | |||
| 16 | 30 | public function __construct(string $lang, array $records = []) |
|
| 17 | { |
||
| 18 | 30 | $this->lang = $lang; |
|
| 19 | 30 | $this->records = Arr::flatten($records); |
|
| 20 | 30 | } |
|
| 21 | |||
| 22 | 27 | public function getLang(): string |
|
| 25 | } |
||
| 26 | |||
| 27 | 24 | public function getRecords(): array |
|
| 28 | { |
||
| 29 | 24 | return $this->records; |
|
| 30 | } |
||
| 31 | |||
| 32 | 21 | public function extend(Dictionary $dictionary): void |
|
| 39 | 18 | } |
|
| 40 | |||
| 41 | 27 | public function findTranslation(string $key): ?string |
|
| 46 |