A PHP representation of the CQL duration datatype

Implements

Methods

__construct

( mixed $months, mixed $days, mixed $nanos )
Parameters:
Name Type Details
$months long|double|string|Cassandra\Bigint

Months attribute of the duration.

$days long|double|string|Cassandra\Bigint

Days attribute of the duration.

$nanos long|double|string|Cassandra\Bigint

Nanos attribute of the duration.

Cassandra\Type

type

( )

The type of represented by the value.

Returns:
Type Details
Cassandra\Type

the Cassandra type for Cassandra\Duration

string

months

( )
Returns:
Type Details
string

the months attribute of this Cassandra\Duration

string

days

( )
Returns:
Type Details
string

the days attribute of this Cassandra\Duration

string

nanos

( )
Returns:
Type Details
string

the nanoseconds attribute of this Cassandra\Duration

string

__toString

( )
Returns:
Type Details
string

string representation of this Cassandra\Duration; may be used as a literal parameter in CQL queries.