Nette\Security\Identity::getRoles PHP Method

getRoles() public method

Returns a list of roles that the user is a member of.
public getRoles ( ) : array
return array
    public function getRoles()
    {
        return $this->roles;
    }