Total Complexity | 5 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class TcpPort extends ValueObjectComplex |
||
13 | { |
||
14 | /** |
||
15 | * @param mixed $value |
||
16 | * @param mixed ...$other |
||
17 | * @throws \ReflectionException |
||
18 | */ |
||
19 | 2 | public function guard($value, ...$other): void |
|
26 | } |
||
27 | 1 | } |
|
28 | |||
29 | /** |
||
30 | * @param string $value |
||
31 | * @return TcpPort |
||
32 | * @throws \ReflectionException |
||
33 | */ |
||
34 | 2 | public static function createFromString(string $value): self |
|
37 | } |
||
38 | |||
39 | /** |
||
40 | * @param int $value |
||
41 | * @return TcpPort |
||
42 | * @throws \ReflectionException |
||
43 | */ |
||
44 | 2 | public static function createFromInt(int $value): self |
|
49 |