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