1 | <?php |
||
14 | final class ApplicationConfig implements ArrayAccess, IteratorAggregate |
||
15 | { |
||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | private $config; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $separator; |
||
25 | |||
26 | /** |
||
27 | * @param array $config |
||
28 | * @param string $separator |
||
29 | * |
||
30 | * @throws InvalidArgumentException |
||
31 | */ |
||
32 | public function __construct(array $config, $separator = '.') |
||
39 | |||
40 | public function merge(array $config) |
||
44 | |||
45 | /** |
||
46 | * @param string $separator |
||
47 | * |
||
48 | * @throws InvalidArgumentException |
||
49 | * |
||
50 | * @return void |
||
51 | */ |
||
52 | public function setSeparator($separator) |
||
58 | |||
59 | public function getIterator() |
||
63 | |||
64 | /** |
||
65 | * @return array<int|string> |
||
66 | */ |
||
67 | public function getKeys() |
||
71 | |||
72 | public function offsetExists($offset) |
||
82 | |||
83 | /** |
||
84 | * @param mixed $offset |
||
85 | * |
||
86 | * @throws EntryDoesNotExistException |
||
87 | * |
||
88 | * @return mixed |
||
89 | */ |
||
90 | public function offsetGet($offset) |
||
94 | |||
95 | /** |
||
96 | * @param mixed $offset |
||
97 | * @param mixed $value |
||
98 | * |
||
99 | * @throws ReadOnlyException |
||
100 | */ |
||
101 | public function offsetSet($offset, $value) |
||
105 | |||
106 | /** |
||
107 | * @param mixed $offset |
||
108 | * |
||
109 | * @throws ReadOnlyException |
||
110 | */ |
||
111 | public function offsetUnset($offset) |
||
115 | |||
116 | /** |
||
117 | * @return array |
||
118 | */ |
||
119 | public function asArray() |
||
123 | |||
124 | /** |
||
125 | * @return string |
||
126 | */ |
||
127 | public function getSeparator() |
||
131 | |||
132 | /** |
||
133 | * @param string $offset |
||
134 | * |
||
135 | * @return array |
||
136 | */ |
||
137 | private function getPath($offset) |
||
141 | |||
142 | /** |
||
143 | * @param array $path |
||
144 | * |
||
145 | * @throws EntryDoesNotExistException |
||
146 | * |
||
147 | * @return mixed |
||
148 | */ |
||
149 | private function traverseConfig(array $path) |
||
163 | } |
||
164 |
This function has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed from the class and what other function to use instead.