final class Uuid implements Value, UuidInterface (View source)

A PHP representation of the CQL uuid datatype

Methods

__construct(string $uuid)

Creates a uuid from a given uuid string or a random one.

string
__toString()

Returns this uuid as string.

type()

The type of this uuid.

string
uuid()

Returns this uuid as string.

int
version()

Returns the version of this uuid.

Details

__construct(string $uuid)

Creates a uuid from a given uuid string or a random one.

Parameters

string $uuid

A uuid string

string __toString()

Returns this uuid as string.

Return Value

string uuid

Type type()

The type of this uuid.

Return Value

Type

string uuid()

Returns this uuid as string.

Return Value

string

uuid as string

int version()

Returns the version of this uuid.

Return Value

int

version of this uuid