Total Complexity | 5 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class Config extends Repository |
||
9 | { |
||
10 | /** |
||
11 | * @param array $config |
||
12 | */ |
||
13 | public function __construct($config = []) |
||
14 | { |
||
15 | $this->items = $this->mergeConfig($config); |
||
16 | $this->validateRequiredKeys(); |
||
17 | } |
||
18 | |||
19 | /** |
||
20 | * @param array $config |
||
21 | * @return array |
||
22 | */ |
||
23 | private function mergeConfig($config = []) : array |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * @return void |
||
57 | * |
||
58 | * @throws \InvalidArgument\Exception |
||
59 | */ |
||
60 | private function validateRequiredKeys() : void |
||
67 |