| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 1 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | public function __construct(string $filePath) |
||
| 35 | 9 | { |
|
| 36 | $this->checkFile($filePath); |
||
| 37 | |||
| 38 | $this->filePath = $filePath; |
||
| 39 | $this->loadSettings(); |
||
| 40 | |||
| 41 | if (!is_array($this->data)) { |
||
| 42 | throw new ParserErrorException( |
||
| 43 | "Configuration file $this->filePath could not be parse as an array. ". |
||
| 44 | "PHP Settings file should be a script that returns an array." |
||
| 45 | ); |
||
| 59 |