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 | private function __construct(string $name, ?string $version) |
||
26 | { |
||
27 | $this->name = $name; |
||
28 | $this->version = $version; |
||
29 | } |
||
30 | |||
31 | public static function read(string $filePath): ManifestFile |
||
40 | } |
||
41 | |||
42 | public function getName(): string |
||
43 | { |
||
44 | return $this->name; |
||
45 | } |
||
46 | |||
47 | public function getVersion(): ?string |
||
50 | } |
||
51 | } |
||
52 |