original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Checks if the helper has an ACL role
  
  Implements {@link AclAwareInterface::hasRole()}.
  
  @return bool
docstring_tokens: Checks if the helper has an ACL role