MapField is used by generated protocol message classes to manipulate map fields. It can be used like native PHP array.
CloneableInstantiableIterable
- Implements
ArrayAccess Countable IteratorAggregate Traversable
Methods |
public __construct( $key_type, $value_type, $klass = NULL) Constructs an instance of MapField.
|
public count() : int Return the number of stored elements. This will also be called for: count($arr)
|
public getIterator() : Traversable
|
public getKeyType()
|
public getLegacyValueClass()
|
public getValueClass()
|
public getValueType()
|
public offsetExists( $key) : bool Check the existence of the element at the given key. This will also be called for: isset($arr)
|
public offsetGet( $key) Return the element at the given key. This will also be called for: $ele = $arr[$key]
|
public offsetSet( $key, $value) Assign the element at the given key. This will also be called for: $arr[$key] = $value
|
public offsetUnset( $key) Remove the element at the given key. This will also be called for: unset($arr)
|
Properties |
private $container = NULL
|
private $key_type = NULL
|
private $klass = NULL
|
private $legacy_klass = NULL
|
private $value_type = NULL
|
Methods |
private checkKey( $key_type, $key)
|