Interface for key-based collections
Located in /Collection/Map/Interface.php (line 23)
Countable | --Xyster_Collection_Map_Interface
Removes all items from the collection
Tests to see whether the map contains the key supplied
If the supplied value is an object, and the map allows objects as keys, the comparison will be done for identity (===) and not for value (==).
This method is an alias to ArrayAccess::offsetExists
Tests to see whether the map contains the value supplied
If the supplied value is an object, the comparison will be done for identity (===) and not for value (==).
Gets the value corresponding to the supplied key
This method could return null if the value is null, or if the value was not found. Use containsValue to check which is true.
Tests to see if the collection contains no elements
The return value from this method should be equivalent to
Gets the first key found for the value supplied
This method could return null if the key is null, or if the key was not found. Use containsKey to check which is true.
Gets all keys for the value supplied
Combines this map with the supplied map
The values in the supplied map will take precedence if this map and the supplied map have duplicate keys.
Removes the mapping for the specified key
This method is an alias to ArrayAccess::offsetUnset
Sets a mapping for the key and value supplied
This method is an alias to ArrayAccess::offsetSet
Puts the items in this collection into an array
For Maps that allow for scalar-only keys, this array should have the map keys as keys and values as values. If the map allows complex types as keys, this array should contain objects with the key and value available.
Documentation generated on Mon, 19 May 2008 17:07:23 -0400 by phpDocumentor 1.4.2