Total Complexity | 6 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class System extends Config |
||
10 | { |
||
11 | public function setValue(string $name, $value): Config |
||
16 | } |
||
17 | |||
18 | public function setValues(array $values): Config |
||
19 | { |
||
20 | $this->values = $values; |
||
21 | |||
22 | return $this; |
||
23 | } |
||
24 | |||
25 | public function mergeValues(array $values): Config |
||
26 | { |
||
27 | $this->values = array_merge($this->values, $values); |
||
28 | |||
29 | return $this; |
||
30 | } |
||
31 | |||
32 | public function load(array $paths = []): Config |
||
33 | { |
||
34 | $path = $this->getOutputPath(); |
||
35 | if (!file_exists($path)) { |
||
36 | return $this; |
||
37 | } |
||
38 | |||
39 | $this->values = array_merge($this->loadFile($path), $this->values); |
||
40 | |||
41 | return $this; |
||
42 | } |
||
43 | |||
44 | public function build(): Config |
||
49 | } |
||
50 | } |
||
51 |