1 | <?php |
||
17 | final class Configuration implements ConfigurationInterface |
||
18 | { |
||
19 | private $config; |
||
20 | |||
21 | /** |
||
22 | * @param array $config |
||
23 | */ |
||
24 | 2268 | public function __construct(array $config = []) |
|
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | 2082 | public function merge(array $config = []) |
|
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | 6 | public function replace(array $config = []) |
|
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | 2160 | public function get(?string $key = null, $default = null) |
|
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | 3 | public function set(string $key, $value = null) |
|
78 | |||
79 | /** |
||
80 | * @param string $keyPath |
||
81 | * @param string|null $default |
||
82 | * |
||
83 | * @return mixed|null |
||
84 | */ |
||
85 | 2076 | private function getConfigByPath(string $keyPath, $default = null) |
|
99 | |||
100 | /** |
||
101 | * @param string $keyPath |
||
102 | * @param string|null $value |
||
103 | */ |
||
104 | 3 | private function setByPath(string $keyPath, $value = null) |
|
122 | } |
||
123 |