function RepeatedField::offsetExists
Check the existence of the element at the given index.
This will also be called for: isset($arr)
Parameters
integer $offset The index of the element to be removed.:
Return value
bool True if the element at the given offset exists.
Throws
\ErrorException Invalid type for index.
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ RepeatedField.php, line 217
Class
- RepeatedField
- RepeatedField is used by generated protocol message classes to manipulate repeated fields. It can be used like native PHP array.
Namespace
Google\Protobuf\InternalCode
public function offsetExists($offset) : bool {
return isset($this->container[$offset]);
}