RepeatedField deprecated
class RepeatedField extends RepeatedField (View source)
deprecated
This class is deprecated. Use Google\Protobuf\RepeatedField instead.
Methods
Constructs an instance of RepeatedField.
Assign the element at the given index.
Check the existence of the element at the given index.
Details
__construct(int $type, string|T> $klass = null)
Constructs an instance of RepeatedField.
getType()
No description
string|T>
getClass()
No description
T
offsetGet(int $offset)
Return the element at the given index.
This will also be called for: $ele = $arr[0]
void
offsetSet(int|null $offset, T $value)
Assign the element at the given index.
This will also be called for: $arr []= $ele and $arr[0] = ele
void
offsetUnset(int $offset)
Remove the element at the given index.
This will also be called for: unset($arr)
bool
offsetExists(int $offset)
Check the existence of the element at the given index.
This will also be called for: isset($arr)
Traversable
getIterator()
No description
int
count()
Return the number of stored elements.
This will also be called for: count($arr)
__debugInfo()
No description