public offsetUnset ( mixed $key ) : void | ||
$key | mixed | Name |
return | void |
public function offsetUnset($key)
{
$this->displayWarning();
if (is_object($this->object) && !$this->object instanceof \ArrayAccess) {
unset($this->object->{$key});
} else {
unset($this->object[$key]);
}
}