| Total Complexity | 9 | 
| Total Lines | 36 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php declare(strict_types=1);  | 
            ||
| 15 | final class Uuid implements ValueObjectInterface  | 
            ||
| 16 | { | 
            ||
| 17 | private ?UuidInterface $value;  | 
            ||
| 18 | |||
| 19 | 1 | public static function generate(): self  | 
            |
| 22 | }  | 
            ||
| 23 | |||
| 24 | /** @param null|string $value */  | 
            ||
| 25 | 3 | public static function fromNative($value): self  | 
            |
| 26 |     { | 
            ||
| 27 | 3 | Assertion::nullOrString($value, 'Trying to create Uuid VO from unsupported value type.');  | 
            |
| 28 | 3 | return empty($value) ? new self : new self(RamseyUuid::fromString($value));  | 
            |
| 29 | }  | 
            ||
| 30 | |||
| 31 | /** @param self $comparator */  | 
            ||
| 32 | 1 | public function equals($comparator): bool  | 
            |
| 36 | }  | 
            ||
| 37 | |||
| 38 | 2 | public function toNative(): ?string  | 
            |
| 41 | }  | 
            ||
| 42 | |||
| 43 | 1 | public function __toString(): string  | 
            |
| 46 | }  | 
            ||
| 47 | |||
| 48 | 3 | private function __construct(UuidInterface $value = null)  | 
            |
| 53 |