| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function __construct(string $filePath) |
||
| 20 | { |
||
| 21 | Assert::fileExists($filePath); |
||
| 22 | $this->filePath = $filePath; |
||
| 23 | |||
| 24 | $fileContent = file_get_contents($filePath); |
||
| 25 | Assert::string($fileContent); |
||
| 26 | |||
| 27 | $this->data = Yaml::parse($fileContent, Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE + Yaml::PARSE_OBJECT); |
||
| 28 | } |
||
| 40 |