Beispiel #1
0
 public function getRole()
 {
     return UserRoleEnum::create($this[self::ROLE]);
 }
Beispiel #2
0
 /**
  * @param mixed $role
  * @return $this
  */
 public function setRole(UserRoleEnum $role)
 {
     $this->getUserDAO()->setRole($role->getId());
     return $this;
 }