function LazyUuidFromString::toUuidV1
File
-
vendor/
ramsey/ uuid/ src/ Lazy/ LazyUuidFromString.php, line 536
Class
- LazyUuidFromString
- Lazy version of a UUID: its format has not been determined yet, so it is mostly only usable for string/bytes conversion. This object optimizes instantiation, serialization and string conversion time, at the cost of increased overhead for more advanced…
Namespace
Ramsey\Uuid\LazyCode
public function toUuidV1() : UuidV1 {
$instance = $this->unwrapped ?? $this->unwrap();
if ($instance instanceof UuidV1) {
return $instance;
}
assert($instance instanceof UuidV6);
return $instance->toUuidV1();
}