/** * @return \Venne\Security\Role[] */ public function getWriteRoles() { if (!$this->isAllowedToRead()) { throw new PermissionDeniedException(); } return $this->writeRoles->toArray(); }
/** * @return Role[] */ public function getChildren() { return $this->children->toArray(); }
/** * @return ArrayCollection|Role[] */ public function getRoleEntities() { return $this->roleEntities->toArray(); }