| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function read(string $path): array |
||
| 30 | {
|
||
| 31 | $config = []; |
||
| 32 | foreach ($this->getParameters($path) as $parameter) {
|
||
| 33 | $name = $parameter['Name']; |
||
| 34 | $name = str_replace(["{$path}/", '/'], ['', '.'], $name);
|
||
| 35 | $value = $parameter['Value']; |
||
| 36 | $config[$name] = $value; |
||
| 37 | } |
||
| 38 | |||
| 39 | return $config; |
||
| 40 | } |
||
| 82 | } |