Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | public function getConfigFromFile(string $configFile) |
||
32 | { |
||
33 | if (!file_exists($configFile)) { |
||
34 | $message = sprintf( |
||
35 | 'File %s could be found', |
||
36 | $configFile |
||
37 | ); |
||
38 | throw new FileNotFoundException($message); |
||
39 | } |
||
40 | $configString = file_get_contents($configFile); |
||
41 | $this->setConfig($configString); |
||
42 | } |
||
43 | |||
56 |