class Map
A PHP representation of the CQL map
datatype
Implements
Dse\Value
Countable
Iterator
ArrayAccess
Methods
Creates a new map of a given key and value type.
Dse\Type
type
( )The type of this map.
array
keys
( )Returns all keys in the map as an array.
array
values
( )Returns all values in the map as an array.
mixed
set
(mixed
$key, mixed
$value )
Sets key/value in the map.
mixed
get
(mixed
$key )
Gets the value of the key in the map.
bool
remove
(mixed
$key )
Removes the key from the map.
bool
has
(mixed
$key )
Returns whether the key is in the map.
int
count
( )Total number of elements in this map
mixed
current
( )Current value 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
void
offsetSet
(mixed
$key, mixed
$value )
Sets the value at a given key
mixed
offsetGet
(mixed
$key )
Retrieves the value at a given key
void
offsetUnset
(mixed
$key )
Deletes the value at a given key
bool
offsetExists
(mixed
$key )
Returns whether the value a given key is present