Do not call this method directly as it is a PHP magic method that
will be implicitly called when executing unset($object->property).
Note that if the property is not defined, this method will do nothing.
If the property is read-only, it will throw an exception.
/** * @inheritdoc */ public function __unset($name) { if (isset($this->_color[$name])) { $this->_color[$name] = null; } else { parent::__unset($name); } }