Beispiel #1
0
 /**
  * @param Term $term
  *
  * @return $this
  */
 public function addTerm(Term $term)
 {
     if (false === $this->terms->contains($term)) {
         $this->terms->add($term);
     }
     return $this;
 }
Beispiel #2
0
 /**
  * @param Term $term
  *
  * @return bool
  */
 public function hasTerm(Term $term)
 {
     return $this->terms->contains($term);
 }