Beispiel #1
0
 /**
  * @return \Venne\Security\Role[]
  */
 public function getWriteRoles()
 {
     if (!$this->isAllowedToRead()) {
         throw new PermissionDeniedException();
     }
     return $this->writeRoles->toArray();
 }
Beispiel #2
0
 /**
  * @param Role $child
  */
 public function removeChildren(Role $child)
 {
     $this->children->removeElement($child);
 }
Beispiel #3
0
 public function removeRoleEntity(Role $role)
 {
     $this->roleEntities->removeElement($role);
 }