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|Dse\Bigint

Months attribute of the duration.

$days long|double|string|Dse\Bigint

Days attribute of the duration.

$nanos long|double|string|Dse\Bigint

Nanos attribute of the duration.

Dse\Type

type

( )

The type of represented by the value.

Returns:
Type Details
Dse\Type

the type for Dse\Duration

string

months

( )
Returns:
Type Details
string

the months attribute of this Dse\Duration

string

days

( )
Returns:
Type Details
string

the days attribute of this Dse\Duration

string

nanos

( )
Returns:
Type Details
string

the nanoseconds attribute of this Dse\Duration

string

__toString

( )
Returns:
Type Details
string

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