| 1 | <?php |
||
| 15 | final class FloatValue implements ValueObjectInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var float|null |
||
| 19 | */ |
||
| 20 | private $value; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param float|null $nativeValue |
||
| 24 | * @return FloatValue |
||
| 25 | */ |
||
| 26 | 18 | public static function fromNative($nativeValue): FloatValue |
|
| 31 | |||
| 32 | 7 | public function toNative(): ?float |
|
| 36 | |||
| 37 | 1 | public function equals(ValueObjectInterface $value): bool |
|
| 41 | |||
| 42 | 2 | public function __toString(): string |
|
| 46 | |||
| 47 | 18 | private function __construct(?float $value) |
|
| 51 | } |
||
| 52 |