class Collection
A PHP representation of the CQL list datatype
Implements
Cassandra\ValueCountableIterator
Methods
__construct
(Cassandra\Type $type )
Creates a new collection of a given type.
Cassandra\Type type
( )The type of this collection.
array values
( )Array of values in this collection.
int add
(mixed $value )
Adds one or more values to this collection.
mixed get
(int $index )
Retrieves the value at a given index.
int find
(mixed $value )
Finds index of a value in this collection.
int count
( )Total number of elements in this collection
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
bool remove
(int $index )
Deletes the value at a given index
