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