19declare(strict_types=1);
24use Ramsey\Uuid\UuidFactory;
38 $this->uuid_factory =
new UuidFactory();
48 return $this->
uuid4()->toString();
59 $this->uuid_factory->uuid3($namespace instanceof
Uuid ? $namespace->
toString() : $namespace, $name)
65 return $this->
uuid3($namespace, $name)->toString();
uuid3AsString(Uuid|string $namespace, string $name)
uuid3(Uuid|string $namespace, string $name)
Name-based UUID (version 3, MD5): the same namespace and name always result in the same UUID.
UuidFactory $uuid_factory
toString()
Converts this UUID into a string representation.