public function offsetUnset($attribute) { if ($attribute == 'name' || $attribute == 'value') { unset($this->pop_image[$attribute]); return; } parent::offsetUnset($attribute); }
/** * Unset a data attribute. * * @param string $property */ public function offsetUnset($property) { $this->element->offsetUnset(self::serialize_property($property)); }