Extends

Methods

string

name

( )

Returns “list”

Returns:
Type Details
string

“list”

string

__toString

( )

Returns type representation in CQL, e.g. list<varchar>

Returns:
Type Details
string

Cassandra\Type representation in CQL

Cassandra\Type

valueType

( )

Returns type of values

Returns:
Type Details
Cassandra\Type

Cassandra\Type of values

Cassandra\Collection

create

( mixed $value = null )

Creates a new Cassandra\Collection from the given values.

Parameters:
Name Type Details
$value mixed

One or more values to be added to the list. When no values given, creates an empty list.

Throws:
Type Details
Exception\InvalidArgumentException

when values given are of a different type than what this list type expects.

Returns:
Type Details
Cassandra\Collection

A list with given values.