UuidInterface

interface Ramsey\Uuid\UuidInterface

Represents a UUID.

compareTo($other)
Parameters
Returns

Returns -1, 0, or 1 if the UUID is less than, equal to, or greater than the other UUID.

Return type

int

equals($other)
Parameters
  • $other (object|null) – An object to test for equality with this UUID.

Returns

Returns true if the UUID is equal to the provided object.

Return type

bool

getBytes()
Returns

A binary string representation of the UUID.

Return type

string

getFields()
Returns

The fields that comprise this UUID.

Return type

Ramsey\Uuid\Fields\FieldsInterface

getHex()
Returns

The hexadecimal representation of the UUID.

Return type

Ramsey\Uuid\Type\Hexadecimal

getInteger()
Returns

The integer representation of the UUID.

Return type

Ramsey\Uuid\Type\Integer

getUrn()
Returns

The string standard representation of the UUID as a URN.

Return type

string

toString()
Returns

The string standard representation of the UUID.

Return type

string

__toString()
Returns

The string standard representation of the UUID.

Return type

string