/** * Removes the component from its parent's children list. * * @throws ComponentException */ public function remove() { if (isset($this->parent)) { $this->parent->removeChild($this); } }