RepeatedField is used by generated protocol message classes to manipulate repeated fields. It can be used like native PHP array.
- template
- implements \ArrayAccess<int,\T>
- implements \IteratorAggregate<\T>
CloneableInstantiableIterable
- Implements
ArrayAccess Countable IteratorAggregate Traversable
Methods |
public __construct( $type, $klass = NULL) Constructs an instance of RepeatedField.
|
public __debugInfo() |
public count() : int Return the number of stored elements. This will also be called for: count($arr)
|
public getClass()
|
public getIterator() : Traversable
|
public getType()
|
public offsetExists( $offset) : bool Check the existence of the element at the given index. This will also be called for: isset($arr)
|
public offsetGet( $offset) Return the element at the given index. This will also be called for: $ele = $arr[0]
|
public offsetSet( $offset, $value) Assign the element at the given index. This will also be called for: $arr []= $ele and $arr[0] = ele
|
public offsetUnset( $offset) Remove the element at the given index. This will also be called for: unset($arr)
|
Properties |
private $container = NULL
|
private $klass = NULL
|
private $type = NULL
|