| Total Complexity | 5 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class Floats extends ValueObject |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @param mixed $value |
||
| 14 | * @param mixed ...$other |
||
| 15 | * @throws \ReflectionException |
||
| 16 | */ |
||
| 17 | 3 | public function guard($value, ...$other): void |
|
| 22 | } |
||
| 23 | 2 | } |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @param int $int |
||
| 27 | * @return Floats |
||
| 28 | * @throws \ReflectionException |
||
| 29 | */ |
||
| 30 | 1 | public static function createFromInt(int $int): self |
|
| 31 | { |
||
| 32 | 1 | return new static((float)$int); |
|
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param string $string |
||
| 37 | * @return Floats |
||
| 38 | * @throws \ReflectionException |
||
| 39 | */ |
||
| 40 | 1 | public static function createFromString(string $string): self |
|
| 43 | } |
||
| 44 | } |
||
| 45 |