Total Complexity | 6 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
29 | final class Port implements ComponentInterface |
||
30 | { |
||
31 | |||
32 | /** |
||
33 | * The component value |
||
34 | * |
||
35 | * @var int|null |
||
36 | */ |
||
37 | private ?int $value = null; |
||
38 | |||
39 | /** |
||
40 | * Constructor of the class |
||
41 | * |
||
42 | * @param mixed $value |
||
43 | * |
||
44 | * @throws InvalidUriComponentException |
||
45 | * If the component isn't valid. |
||
46 | */ |
||
47 | 57 | public function __construct($value) |
|
65 | } |
||
66 | |||
67 | /** |
||
68 | * {@inheritdoc} |
||
69 | * |
||
70 | * @return int|null |
||
71 | */ |
||
72 | 49 | public function getValue(): ?int |
|
77 |