public function hasRole()
    {
        if ($this->role instanceof Acl\Role\RoleInterface
            || is_string($this->role)
            || static::$defaultRole instanceof Acl\Role\RoleInterface
            || is_string(static::$defaultRole)
        ) {
            return true;
        }
    
        return false;
    }
public function hasRole()
    {
        if ($this->role instanceof Acl\Role\RoleInterface
            || is_string($this->role)
            || static::$defaultRole instanceof Acl\Role\RoleInterface
            || is_string(static::$defaultRole)
        ) {
            return true;
        }
    
        return false;
    }
public function hasRole ( ) { if ( $ this -> role instanceof Acl \ Role \ RoleInterface || is_string ( $ this -> role ) || static :: $ defaultRole instanceof Acl \ Role \ RoleInterface || is_string ( static :: $ defaultRole ) ) { return true ; } return false ; }
Checks if the helper has an ACL role

Implements {@link AclAwareInterface::hasRole()}.

@return bool
Checks if the helper has an ACL role