Total Complexity | 4 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | final class INIConfDriver 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 | * INIConfDriver constructor. |
||
12 | * |
||
13 | * @param string $mainConfFile |
||
14 | * @param string $confLocation |
||
15 | */ |
||
16 | 2 | public function __construct(string $mainConfFile, string $confLocation) |
|
17 | { |
||
18 | 2 | $this->mainConfFile = $mainConfFile; |
|
19 | 2 | $this->confLocation = $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 | 2 | public function parseConfigurationFile(?string $file = null): array |
|
35 | } |
||
36 | } |
||
37 |