| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 42 | public function __construct(string $manifestPath) |
||
| 43 | { |
||
| 44 | if (!is_file($manifestPath)) { |
||
| 45 | throw new InvalidArgumentException( |
||
| 46 | sprintf('File [%s] not found.', $manifestPath) |
||
| 47 | ); |
||
| 48 | } |
||
| 49 | |||
| 50 | $this->data = json_decode( |
||
| 51 | file_get_contents($manifestPath), |
||
| 52 | true, |
||
| 53 | 2, |
||
| 54 | JSON_THROW_ON_ERROR |
||
| 55 | ); |
||
| 78 |