A class that represents the set type. The set type contains the type of the elements contain in the set.

Extends

Methods

string

name

( )

Returns “set”

Returns:
Type Details
string

“set”

Dse\Type

valueType

( )

Returns type of values

Returns:
Type Details
Dse\Type

Dse\Type of values

string

__toString

( )

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

Returns:
Type Details
string

Dse\Type representation in CQL

Type\Set

create

( mixed $value )

Creates a new Type\Set from the given values.

Parameters:
Name Type Details
$value mixed

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

Throws:
Type Details
Exception\InvalidArgumentException

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

Returns:
Type Details
Type\Set

A set with given values.