src/BjyAuthorize/Provider/Identity/AuthenticationIdentityProvider.php
public function setAuthenticatedRole($authenticatedRole)
    {
        if (! ($authenticatedRole instanceof RoleInterface || is_string($authenticatedRole))) {
            throw InvalidRoleException::invalidRoleInstance($authenticatedRole);
        }

        $this->authenticatedRole = $authenticatedRole;
    }
public function setAuthenticatedRole($authenticatedRole)
    {
        if (! ($authenticatedRole instanceof RoleInterface || is_string($authenticatedRole))) {
            throw InvalidRoleException::invalidRoleInstance($authenticatedRole);
        }

        $this->authenticatedRole = $authenticatedRole;
    }
public function setAuthenticatedRole ( $ authenticatedRole ) { if ( ! ( $ authenticatedRole instanceof RoleInterface || is_string ( $ authenticatedRole ) ) ) { throw InvalidRoleException :: invalidRoleInstance ( $ authenticatedRole ) ; } $ this -> authenticatedRole = $ authenticatedRole ; }
Set the role that is used if you're authenticated and the identity provides no role

@param string|\Zend\Permissions\Acl\Role\RoleInterface $authenticatedRole

@throws \BjyAuthorize\Exception\InvalidRoleException
Set the role that is used if you re authenticated and the identity provides no role