A class that represents the tuple type. The tuple type is able to represent a composite type of one or more types accessed by index.

Extends

Methods

string

name

( )

Returns “tuple”

Returns:
Type Details
string

“tuple”

string

__toString

( )

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

Returns:
Type Details
string

Dse\Type representation in CQL

array

types

( )

Returns types of values

Returns:
Type Details
array

An array of types

Type\Tuple

create

( mixed $values )

Creates a new Type\Tuple from the given values. When no values given, creates a tuple with null for the values.

Parameters:
Name Type Details
$values mixed
Throws:
Type Details
Exception\InvalidArgumentException

when values given are of a different type than what the tuple expects.

Returns:
Type Details
Type\Tuple

A tuple with given values.