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