Total Complexity | 3 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class Manifest |
||
16 | { |
||
17 | /** @var string */ |
||
18 | protected $name; |
||
19 | |||
20 | /** @var string */ |
||
21 | protected $version; |
||
22 | |||
23 | |||
24 | /** |
||
25 | * Manifest constructor. |
||
26 | * |
||
27 | * @param string $name |
||
28 | * @param string $version |
||
29 | */ |
||
30 | public function __construct(string $name, string $version) |
||
31 | { |
||
32 | $this->name = $name; |
||
33 | $this->version = $version; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * Returns the module name |
||
38 | * |
||
39 | * @return string |
||
40 | */ |
||
41 | public function getName() |
||
42 | { |
||
43 | return $this->name; |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * Returns the module version |
||
48 | * |
||
49 | * @return string |
||
50 | */ |
||
51 | public function getVersion() |
||
54 | } |
||
55 | } |
||
56 |