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