Пример #1
0
 /**
  * @inheritdoc
  */
 public function hasChildren()
 {
     return !$this->children->isEmpty() ? true : false;
 }
Пример #2
0
 /**
  * @inheritdoc
  */
 public function removeTerm(TermInterface $term)
 {
     if ($this->terms->contains($term)) {
         $this->terms->removeElement($term);
         $term->removeAamcResourceType($this);
     }
 }
Пример #3
0
 /**
  * @param TermInterface $term
  */
 public function addTerm(TermInterface $term)
 {
     if (!$this->terms->contains($term)) {
         $this->terms->add($term);
     }
 }