UuidFactoryInterface
interface UuidFactoryInterface (View source)
UuidFactoryInterface defines common functionality all UuidFactory
instances
must implement
Methods
Generate a version 1 UUID from a host ID, sequence number, and the current time.
Generate a version 3 UUID based on the MD5 hash of a namespace identifier (which is a UUID) and a name (which is a string).
Generate a version 4 (random) UUID.
Generate a version 5 UUID based on the SHA-1 hash of a namespace identifier (which is a UUID) and a name (which is a string).
Creates a UUID from a byte string.
Creates a UUID from the string standard representation
Creates a Uuid
from an integer representation
Details
at line 33
UuidInterface
uuid1(int|string $node = null, int $clockSeq = null)
Generate a version 1 UUID from a host ID, sequence number, and the current time.
at line 43
UuidInterface
uuid3(string $ns, string $name)
Generate a version 3 UUID based on the MD5 hash of a namespace identifier (which is a UUID) and a name (which is a string).
at line 50
UuidInterface
uuid4()
Generate a version 4 (random) UUID.
at line 60
UuidInterface
uuid5(string $ns, string $name)
Generate a version 5 UUID based on the SHA-1 hash of a namespace identifier (which is a UUID) and a name (which is a string).
at line 68
UuidInterface
fromBytes(string $bytes)
Creates a UUID from a byte string.
at line 76
UuidInterface
fromString(string $uuid)
Creates a UUID from the string standard representation
at line 88
UuidInterface
fromInteger(mixed $integer)
Creates a Uuid
from an integer representation
The integer representation may be a real integer, a string integer, or an integer representation supported by a configured number converter.