public function offsetUnset($offset) { if (is_array($this->object)) { unset($this->object[$offset]); return; } unset($this->object->{$offset}); }