getRoles() public method

public getRoles ( )
示例#1
0
文件: User.php 项目: 2remdou/nicetruc
 public function addGroup(GroupInterface $group)
 {
     if (!in_array($group->getRoles(), $this->getRoles())) {
         $this->addRole($group->getRoles());
     }
     if (!$this->getGroups()->contains($group)) {
         $this->getGroups()->add($group);
     }
     return $this;
 }