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