class Map
A PHP representation of the CQL map
datatype
Implements
Countable
Iterator
ArrayAccess
Methods
__construct
(string
$keyType, string
$valueType )
Creates a new map of a given key and value type.
string
keyType
( )Returns key type of this map.
array
keys
( )Returns all keys in the map as an array.
string
valueType
( )Returns value type of this map.
array
values
( )Returns all values in the map as an array.
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