Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | 8 | public function __construct($configFile) |
|
13 | { |
||
14 | 8 | $this->configFile = $configFile; |
|
15 | |||
16 | 8 | if (!file_exists($this->configFile)) { |
|
17 | 1 | throw new FileNotFound( |
|
18 | 1 | sprintf("Unable to find config file at %s", $this->configFile) |
|
19 | ); |
||
20 | } |
||
21 | |||
22 | 7 | $this->xmlDoc = new \SimpleXMLElement(file_get_contents($this->configFile)); |
|
23 | 7 | } |
|
24 | |||
87 | } |