/** * @inheritdoc */ public function hasChildren() { return !$this->children->isEmpty() ? true : false; }
/** * @inheritdoc */ public function removeTerm(TermInterface $term) { if ($this->terms->contains($term)) { $this->terms->removeElement($term); $term->removeAamcResourceType($this); } }
/** * @param TermInterface $term */ public function addTerm(TermInterface $term) { if (!$this->terms->contains($term)) { $this->terms->add($term); } }