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