Implements

Methods

string

name

( )

Returns type name for the user type

Returns:
Type Details
string
string

keyspace

( )

Returns keyspace for the user type

Returns:
Type Details
string
string

__toString

( )

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

array

types

( )

Returns types of values

Returns:
Type Details
array

An array of types

Cassandra\UserTypeValue

create

( mixed $value = null )

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.