/** * {@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); } }
/** * {@inheritDoc} */ public function removeParent(Abstracts\Feature $parent, $recurse = true) { if ($parent instanceof Gene) { $this->removeGene($parent, $recurse); } else { parent::removeParent($parent, $recurse); } }