Contents
- Features page
- Installing Cassandra PHP Extension page
-
API docs index
-
Cassandra namespace
- Cluster namespace
- Exception namespace
- RetryPolicy namespace
- SSLOptions namespace
- TimestampGenerator namespace
- Type namespace
- Function interface
- Index interface
- Numeric interface
- RetryPolicy interface
- BatchStatement class
- Bigint class
- Blob class
- Collection class
- Table interface
- Decimal class
- DefaultColumn class
- DefaultIndex class
- DefaultMaterializedView class
- ExecutionOptions class
- Float class
- FutureClose class
- Future interface
- FutureException class
- FuturePreparedStatement class
- FutureRows class
- FutureSession class
- Map class
- PreparedStatement class
- Set class
- Smallint class
- SSLOptions class
- Tinyint class
- Varint class
- Aggregate interface
- Cluster interface
- Exception interface
- Keyspace interface
- Schema interface
- TimestampGenerator interface
- Date class
- DefaultAggregate class
- DefaultKeyspace class
- DefaultSession class
- Inet class
- Time class
- Timestamp class
- Timeuuid class
- Tuple class
- Value interface
- Type class
- Column interface
- Statement interface
- UuidInterface interface
- DefaultCluster class
- DefaultSchema class
- FutureValue class
- SimpleStatement class
- UserTypeValue class
- Uuid class
- MaterializedView interface
- DefaultTable class
- Session interface
- Rows class
- Cassandra class
- DefaultFunction class
-
Cassandra namespace
Extends
Methods
Returns type representation in CQL, e.g. 1keyspace.type_name1 or userType<name1:varchar, name2:int>
.
- Returns:
Type Details string
Cassandra\Type
representation in CQL
Creates a new Cassandra\UserTypeValue
from the given name/value pairs.
- Parameters:
Name Type Details $value mixed
One or more name/value pairs to be added to the user type. When no values given, creates an empty user type.
- Throws:
Type Details Exception\InvalidArgumentException
when values given are of a different types than what the user type expects.
- Returns:
Type Details Cassandra\UserTypeValue
A user type value with given name/value pairs.