|
|
|
@ -118,8 +118,8 @@ class RepeatedField implements \ArrayAccess, \IteratorAggregate, \Countable |
|
|
|
|
* |
|
|
|
|
* @param long $offset The index of the element to be fetched. |
|
|
|
|
* @return object The stored element at given index. |
|
|
|
|
* @throws ErrorException Invalid type for index. |
|
|
|
|
* @throws ErrorException Non-existing index. |
|
|
|
|
* @throws \ErrorException Invalid type for index. |
|
|
|
|
* @throws \ErrorException Non-existing index. |
|
|
|
|
*/ |
|
|
|
|
public function offsetGet($offset) |
|
|
|
|
{ |
|
|
|
@ -134,9 +134,9 @@ class RepeatedField implements \ArrayAccess, \IteratorAggregate, \Countable |
|
|
|
|
* @param long $offset The index of the element to be assigned. |
|
|
|
|
* @param object $value The element to be assigned. |
|
|
|
|
* @return void |
|
|
|
|
* @throws ErrorException Invalid type for index. |
|
|
|
|
* @throws ErrorException Non-existing index. |
|
|
|
|
* @throws ErrorException Incorrect type of the element. |
|
|
|
|
* @throws \ErrorException Invalid type for index. |
|
|
|
|
* @throws \ErrorException Non-existing index. |
|
|
|
|
* @throws \ErrorException Incorrect type of the element. |
|
|
|
|
*/ |
|
|
|
|
public function offsetSet($offset, $value) |
|
|
|
|
{ |
|
|
|
@ -206,8 +206,8 @@ class RepeatedField implements \ArrayAccess, \IteratorAggregate, \Countable |
|
|
|
|
* |
|
|
|
|
* @param long $offset The index of the element to be removed. |
|
|
|
|
* @return void |
|
|
|
|
* @throws ErrorException Invalid type for index. |
|
|
|
|
* @throws ErrorException The element to be removed is not at the end of the |
|
|
|
|
* @throws \ErrorException Invalid type for index. |
|
|
|
|
* @throws \ErrorException The element to be removed is not at the end of the |
|
|
|
|
* RepeatedField. |
|
|
|
|
*/ |
|
|
|
|
public function offsetUnset($offset) |
|
|
|
@ -229,7 +229,7 @@ class RepeatedField implements \ArrayAccess, \IteratorAggregate, \Countable |
|
|
|
|
* |
|
|
|
|
* @param long $offset The index of the element to be removed. |
|
|
|
|
* @return bool True if the element at the given offset exists. |
|
|
|
|
* @throws ErrorException Invalid type for index. |
|
|
|
|
* @throws \ErrorException Invalid type for index. |
|
|
|
|
*/ |
|
|
|
|
public function offsetExists($offset) |
|
|
|
|
{ |
|
|
|
|