Nonstandard\UuidV6

class Ramsey\Uuid\Nonstandard\UuidV6

Implements Ramsey\Uuid\Rfc4122\UuidInterface and Ramsey\Uuid\TimeBasedInterface.

While in the Nonstandard sub-namespace, UuidV6 implements the same interface as the RFC 4122 UUIDs. This is because the definition for version 6 UUIDs is currently in draft form, with the intent to update RFC 4122.

UuidV6 represents a version 6, ordered-time UUID. In addition to providing the methods defined on the interface, this class additionally provides the following methods.

toUuidV1()
Returns

A version 1 UUID, converted from this version 6 UUID

Return type

Ramsey\Uuid\Rfc4122\UuidV1

static fromUuidV1
Parameters
Returns

A version 6 UUID, converted from the given version 1 UUID

Return type

Ramsey\Uuid\Nonstandard\UuidV6