コード例 #1
0
ファイル: MeshConcept.php プロジェクト: Okami-/ilios
 /**
  * @param MeshTermInterface $term
  */
 public function addTerm(MeshTermInterface $term)
 {
     $this->terms->add($term);
 }
コード例 #2
0
ファイル: MeshConcept.php プロジェクト: stopfstedt/ilios
 /**
  * @param MeshTermInterface $term
  */
 public function removeTerm(MeshTermInterface $term)
 {
     if ($this->terms->contains($term)) {
         $this->terms->removeElement($term);
         $term->removeConcept($this);
     }
 }