| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | 4 | public function __construct($yamlFilepath) |
|
| 18 | { |
||
| 19 | 4 | $this->yamlFilepath = $yamlFilepath; |
|
| 20 | 4 | if (!file_exists($this->yamlFilepath)) { |
|
| 21 | 1 | throw new \Exception('DeviceList file ' . $this->yamlFilepath . ' not found!'); |
|
| 22 | } |
||
| 23 | try { |
||
| 24 | 3 | $this->parseYaml(); |
|
| 25 | 3 | } catch (\Exception $e) { |
|
| 26 | 1 | throw $e; |
|
| 27 | } |
||
| 28 | 2 | } |
|
| 29 | |||
| 68 |