Contents
- Building PHP Extension page
- Features page
-
API docs index
-
Cassandra namespace
- Cluster namespace
- Exception namespace
- RetryPolicy namespace
- SSLOptions namespace
- TimestampGenerator namespace
- Type namespace
- Future interface
- Numeric interface
- RetryPolicy interface
- BatchStatement class
- Bigint class
- Blob class
- Collection class
- Table interface
- Custom class
- Date class
- Decimal class
- DefaultAggregate class
- DefaultCluster class
- DefaultColumn class
- DefaultFunction class
- DefaultIndex class
- DefaultMaterializedView class
- ExecutionOptions class
- Float class
- FutureClose class
- FuturePreparedStatement class
- FutureSession class
- Map class
- MaterializedView class
- PreparedStatement class
- Set class
- Smallint class
- SSLOptions class
- Tinyint class
- Aggregate interface
- Cluster interface
- Exception interface
- Function interface
- Index interface
- FutureRows class
- Varint class
- Keyspace interface
- Schema interface
- TimestampGenerator interface
- DefaultKeyspace class
- DefaultSchema class
- DefaultSession class
- DefaultTable class
-
Duration class
- Inet class
- Time class
- Timestamp class
- Timeuuid class
- Tuple class
- Value interface
- Type class
- Column interface
- Statement interface
- UuidInterface interface
- FutureValue class
- SimpleStatement class
- UserTypeValue class
- Uuid class
- Session interface
- Rows class
- Cassandra class
-
Cassandra namespace
A PHP representation of the CQL duration
datatype
Implements
Methods
- 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 forCassandra\Duration
- Returns:
Type Details string
the months attribute of this
Cassandra\Duration
- Returns:
Type Details string
the days attribute of this
Cassandra\Duration
- Returns:
Type Details string
the nanoseconds attribute of this
Cassandra\Duration
- Returns:
Type Details string
string representation of this
Cassandra\Duration
; may be used as a literal parameter in CQL queries.