PHP Class Cassandra\Uuid

Inheritance: implements cassandra\UuidInterface
Show file Open project: datastax/php-driver

Public Methods

Method Description
__construct ( string $uuid = null ) Creates a uuid from a given uuid string or a random one.
__toString ( ) : string Returns this uuid as string.
type ( ) : cassandra\Type The type of this uuid.
uuid ( ) : string Returns this uuid as string.
version ( ) : integer Returns the version of this uuid.

Method Details

__construct() public method

Creates a uuid from a given uuid string or a random one.
public __construct ( string $uuid = null )
$uuid string A uuid string

__toString() public method

Returns this uuid as string.
public __toString ( ) : string
return string uuid

type() public method

The type of this uuid.
public type ( ) : cassandra\Type
return cassandra\Type

uuid() public method

Returns this uuid as string.
public uuid ( ) : string
return string uuid

version() public method

Returns the version of this uuid.
public version ( ) : integer
return integer version of this uuid