function MapField::offsetUnset
Remove the element at the given key.
This will also be called for: unset($arr)
@todo need to add return type void (require update php version to 7.1)
Parameters
int|string $key The key of the element to be removed.:
Return value
void
Throws
\ErrorException Invalid type for key.
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ MapField.php, line 196
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 offsetUnset($key) {
$this->checkKey($this->key_type, $key);
unset($this->container[$key]);
}