| Total Complexity | 5 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class UUIDV1 extends Id |
||
| 9 | { |
||
| 10 | private UuidInterface $id; |
||
| 11 | |||
| 12 | 3 | private function __construct(UuidInterface $id) |
|
| 13 | { |
||
| 14 | 3 | $this->id = $id; |
|
| 15 | 3 | } |
|
| 16 | |||
| 17 | 1 | public static function generate(): UUIDV1 |
|
| 18 | { |
||
| 19 | 1 | return new static(Uuid::uuid1()); |
|
| 20 | } |
||
| 21 | |||
| 22 | 1 | public function getId(): UuidInterface |
|
| 23 | { |
||
| 24 | 1 | return $this->id; |
|
| 25 | } |
||
| 26 | |||
| 27 | 2 | public static function fromString(string $string): UUIDV1 |
|
| 30 | } |
||
| 31 | |||
| 32 | 1 | public function getHumanReadableId(): string |
|
| 33 | { |
||
| 37 |