final class Duration implements Value (View source)

A PHP representation of the CQL duration datatype

Methods

__construct(int|float|string|Bigint $months, int|float|string|Bigint $days, int|float|string|Bigint $nanos)

No description

type()

The type of represented by the value.

string
months()

No description

string
days()

No description

string
nanos()

No description

string
__toString()

No description

Details

__construct(int|float|string|Bigint $months, int|float|string|Bigint $days, int|float|string|Bigint $nanos)

No description

Parameters

int|float|string|Bigint $months

Months attribute of the duration.

int|float|string|Bigint $days

Days attribute of the duration.

int|float|string|Bigint $nanos

Nanos attribute of the duration.

Type type()

The type of represented by the value.

Return Value

Type

string months()

No description

Return Value

string

the months attribute of this Duration

string days()

No description

Return Value

string

the days attribute of this Duration

string nanos()

No description

Return Value

string

the nanoseconds attribute of this Duration

string __toString()

No description

Return Value

string

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