Total Complexity | 4 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
8 | final class Version |
||
9 | { |
||
10 | private $vendor; |
||
11 | private $product; |
||
12 | private $version; |
||
13 | |||
14 | /** |
||
15 | * @param int $vendor |
||
16 | * @param int $product |
||
17 | * @param int $version |
||
18 | * @throws InvalidValueException |
||
19 | */ |
||
20 | 20 | public function __construct(int $vendor, int $product, int $version) |
|
25 | } |
||
26 | |||
27 | 5 | public function getVendor(): int |
|
28 | { |
||
29 | 5 | return $this->vendor; |
|
30 | } |
||
31 | |||
32 | 5 | public function getProduct(): int |
|
35 | } |
||
36 | |||
37 | 3 | public function getVersion(): int |
|
40 | } |
||
41 | } |
||
42 |