/** * {@inheritDoc} */ public function removeChild(Abstracts\Feature $child, $recurse = true) { if ($child instanceof Exon) { $this->removeExon($child, $recurse); } elseif ($child instanceof Intron) { $this->removeIntron($child, $recurse); } elseif ($child instanceof mRNA) { $this->removemRNA($child, $recurse); } else { parent::removeChild($child, $recurse); } }