UuidFactory
class UuidFactory implements UuidFactoryInterface (View source)
Methods
No description
No description
No description
No description
No description
Creates a UUID from a byte string.
Creates a UUID from the string standard representation as described in the toString() method.
No description
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).
No description
No description
Returns a version 3 or 5 UUID based on the hash (md5 or sha1) of a namespace identifier (which is a UUID) and a name (which is a string)
Details
at line 66
__construct(FeatureSet $features = null)
Create a new a instance
at line 78
getCodec()
at line 83
getNodeProvider()
at line 88
getRandomGenerator()
at line 93
getTimeGenerator()
at line 98
setTimeGenerator(TimeGeneratorInterface $generator)
at line 103
getNumberConverter()
at line 108
setRandomGenerator(RandomGeneratorInterface $generator)
at line 113
setNumberConverter(NumberConverterInterface $converter)
at line 118
setUuidBuilder(UuidBuilderInterface $builder)
at line 130
fromBytes($bytes)
Creates a UUID from a byte string.
at line 143
fromString($name)
Creates a UUID from the string standard representation as described in the toString() method.
at line 148
fromInteger($integer)
at line 171
uuid1($node = null, $clockSeq = null)
Generate a version 1 UUID from a host ID, sequence number, and the current time.
If $node is not given, we will attempt to obtain the local hardware address. If $clockSeq is given, it is used as the sequence number; otherwise a random 14-bit sequence number is chosen.
at line 188
uuid3($ns, $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 198
uuid4()
Generate a version 4 (random) UUID.
at line 218
uuid5($ns, $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).