Total Complexity | 5 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | final class ManifestFile |
||
20 | { |
||
21 | private string $name; |
||
22 | |||
23 | private ?string $version; |
||
24 | |||
25 | public static function read(string $filePath): ManifestFile |
||
34 | } |
||
35 | |||
36 | public function getName(): string |
||
37 | { |
||
38 | return $this->name; |
||
39 | } |
||
40 | |||
41 | public function getVersion(): ?string |
||
44 | } |
||
45 | |||
46 | private function __construct(string $name, ?string $version) |
||
50 | } |
||
51 | } |
||
52 |