1 | <?php |
||
8 | final class Uuid implements ValueObjectInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var null |
||
12 | */ |
||
13 | private const NIL = null; |
||
14 | |||
15 | /** |
||
16 | * @var RamseyUuid|null |
||
17 | */ |
||
18 | private $value; |
||
19 | |||
20 | 1 | public static function generate(): self |
|
24 | |||
25 | /** |
||
26 | * @param string|null $nativeValue |
||
27 | * @return self |
||
28 | */ |
||
29 | 17 | public static function fromNative($nativeValue): self |
|
34 | |||
35 | 3 | public function equals(ValueObjectInterface $otherValue): bool |
|
39 | |||
40 | 7 | public function toNative(): ?string |
|
44 | |||
45 | 1 | public function __toString(): string |
|
49 | |||
50 | 17 | private function __construct(RamseyUuid $value = null) |
|
54 | } |
||
55 |