/**
  * {@inheritdoc}
  */
 public function addGroup(GroupInterface $group)
 {
     if (!$this->groups->contains($group)) {
         $this->groups->add($group);
     }
     return $this;
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function removeGroup(GroupInterface $group)
 {
     if ($this->groups->contains($group)) {
         $this->groups->removeElement($group);
     }
 }