class Set
A PHP representation of the CQL set
datatype
Implements
Dse\Value
Countable
Iterator
Methods
__construct
(Dse\Type
$type )
Creates a new collection of a given type.
Dse\Type
type
( )The type of this set.
array
values
( )Array of values in this set.
bool
add
(mixed
$value )
Adds a value to this set.
bool
has
(mixed
$value )
Returns whether a value is in this set.
bool
remove
(mixed
$value )
Removes a value to this set.
int
count
( )Total number of elements in this set
mixed
current
( )Current element for iteration
int
key
( )Current key for iteration
void
next
( )Move internal iterator forward
bool
valid
( )Check whether a current value exists
void
rewind
( )Rewind internal iterator