| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 9 | 
| Code Lines | 4 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 25 | public static function read(string $filePath): ManifestFile  | 
            ||
| 26 |     { | 
            ||
| 27 |         if (!is_readable($filePath)) { | 
            ||
| 28 |             throw new RuntimeException("The module manifest file `$filePath` can not be read"); | 
            ||
| 29 | }  | 
            ||
| 30 | |||
| 31 | $data = include($filePath);  | 
            ||
| 32 | |||
| 33 | return new ManifestFile($data['name'] ?? 'N/A', $data['version'] ?? null);  | 
            ||
| 34 | }  | 
            ||
| 52 |