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:

Ramsey\Uuid\Type\Hexadecimal

getClockSeqHiAndReserved()
Returns:

The high field of the clock sequence multiplexed with the variant.

Return type:

Ramsey\Uuid\Type\Hexadecimal

getClockSeqLow()
Returns:

The low field of the clock sequence.

Return type:

Ramsey\Uuid\Type\Hexadecimal

getNode()
Returns:

The node field.

Return type:

Ramsey\Uuid\Type\Hexadecimal

getTimeHiAndVersion()
Returns:

The high field of the timestamp multiplexed with the version.

Return type:

Ramsey\Uuid\Type\Hexadecimal

getTimeLow()
Returns:

The low field of the timestamp.

Return type:

Ramsey\Uuid\Type\Hexadecimal

getTimeMid()
Returns:

The middle field of the timestamp.

Return type:

Ramsey\Uuid\Type\Hexadecimal

getTimestamp()
Returns:

The full 60-bit timestamp, without the version.

Return type:

Ramsey\Uuid\Type\Hexadecimal

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