function UuidFactoryInterface::uuid5
Returns a version 5 (name-based) UUID based on the SHA-1 hash of a namespace ID and a name
@psalm-pure
Parameters
string|UuidInterface $ns The namespace (must be a valid UUID):
string $name The name to use for creating a UUID:
Return value
UuidInterface A UuidInterface instance that represents a version 5 UUID
1 method overrides UuidFactoryInterface::uuid5()
- UuidFactory::uuid5 in vendor/
ramsey/ uuid/ src/ UuidFactory.php - @inheritDoc @psalm-pure
File
-
vendor/
ramsey/ uuid/ src/ UuidFactoryInterface.php, line 166
Class
- UuidFactoryInterface
- UuidFactoryInterface defines common functionality all `UuidFactory` instances must implement
Namespace
Ramsey\UuidCode
public function uuid5($ns, string $name) : UuidInterface;