Rfc4122\FieldsInterface¶
-
interface
Ramsey\Uuid\Rfc4122\FieldsInterface¶ Implements
Ramsey\Uuid\Fields\FieldsInterface.Rfc4122FieldsInterface represents the fields of an RFC 4122 UUID. In addition to the methods defined on the interface, this class additionally defines the following methods.
-
getClockSeq()¶ - Returns
The full 16-bit clock sequence, with the variant bits (two most significant bits) masked out.
- Return type
-
getClockSeqHiAndReserved()¶ - Returns
The high field of the clock sequence multiplexed with the variant.
- Return type
-
getClockSeqLow()¶ - Returns
The low field of the clock sequence.
- Return type
-
getNode()¶ - Returns
The node field.
- Return type
-
getTimeHiAndVersion()¶ - Returns
The high field of the timestamp multiplexed with the version.
- Return type
-
getTimeLow()¶ - Returns
The low field of the timestamp.
- Return type
-
getTimeMid()¶ - Returns
The middle field of the timestamp.
- Return type
-
getTimestamp()¶ - Returns
The full 60-bit timestamp, without the version.
- Return type
-
getVariant()¶ Returns the variant, which, for RFC 4122 variant UUIDs, should always be the value
2.- Returns
The UUID variant.
- Return type
int
-
getVersion()¶ - Returns
The UUID version.
- Return type
int
-
isNil()¶ A nil UUID is a special type of UUID with all 128 bits set to zero. Its string standard representation is always
00000000-0000-0000-0000-000000000000.- Returns
True if this UUID represents a nil UUID.
- Return type
bool
-