| 1 | <?php |
||
| 14 | class Module implements ValueObjectInterface |
||
| 15 | { |
||
| 16 | use ValueObjectTrait; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $name; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | private $version; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | private $class; |
||
| 32 | |||
| 33 | |||
| 34 | /** |
||
| 35 | * Module constructor. |
||
| 36 | * @param string $name |
||
| 37 | */ |
||
| 38 | 6 | public function __construct(string $name, string $version, string $class) |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | 3 | public function getName() : string |
|
| 54 | |||
| 55 | /** |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | 3 | public function getVersion() : string |
|
| 62 | |||
| 63 | /** |
||
| 64 | * @return string |
||
| 65 | */ |
||
| 66 | 3 | public function getClass() : string |
|
| 70 | |||
| 71 | |||
| 72 | 2 | public function getValue() |
|
| 78 | |||
| 79 | /** |
||
| 80 | * @param string $attr |
||
| 81 | * @param string $attrName |
||
| 82 | */ |
||
| 83 | 6 | private function validate(string $attr, string $attrName) |
|
| 95 | |||
| 96 | } |