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