| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | final class ArrayConfDriver implements ConfDriverInterface |
||
| 6 | { |
||
| 7 | private string $mainConfFile; // Path and file name of the top configuration file. |
||
| 8 | private string $confLocation; // Path of the configuration files. |
||
| 9 | |||
| 10 | /** |
||
| 11 | * ArrConfDriver constructor. |
||
| 12 | * |
||
| 13 | * @param string $mainConfFile |
||
| 14 | * @param string $confLocation |
||
| 15 | */ |
||
| 16 | 6 | public function __construct(string $mainConfFile, string $confLocation) |
|
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Load and parse a configuration file and return an array. |
||
| 24 | * |
||
| 25 | * @param string | null $file If null, then load the main configuration file |
||
| 26 | * |
||
| 27 | * @return array |
||
| 28 | */ |
||
| 29 | 6 | public function parseConfigurationFile(?string $file = null): array |
|
| 38 |