original_string: private function listResources($filters = array(), $listType = null)
      {
          $uri = '/resources';
          $query = array();
          if ($listType) {
              $query[] = $listType;
          }
          foreach ($filters as $name => $value) {
              $query[] = "{$name}={$value}";
          }
  
          if (sizeof($query)) {
              $uri .= '?' . implode('&', $query);
          }
          $body = $this->sendRequest($uri);
          $node = $this->parseXml((string)$body);
          return $this->parseResourcesXmlToResources($node);
      }
code: private function listResources($filters = array(), $listType = null)
      {
          $uri = '/resources';
          $query = array();
          if ($listType) {
              $query[] = $listType;
          }
          foreach ($filters as $name => $value) {
              $query[] = "{$name}={$value}";
          }
  
          if (sizeof($query)) {
              $uri .= '?' . implode('&', $query);
          }
          $body = $this->sendRequest($uri);
          $node = $this->parseXml((string)$body);
          return $this->parseResourcesXmlToResources($node);
      }
code_tokens: private function listResources ( $ filters = array ( ) , $ listType = null ) { $ uri = '/resources' ; $ query = array ( ) ; if ( $ listType ) { $ query [ ] = $ listType ; } foreach ( $ filters as $ name => $ value ) { $ query [ ] = "{$name}={$value}" ; } if ( sizeof ( $ query ) ) { $ uri .= '?' . implode ( '&' , $ query ) ; } $ body = $ this -> sendRequest ( $ uri ) ; $ node = $ this -> parseXml ( ( string ) $ body ) ; return $ this -> parseResourcesXmlToResources ( $ node ) ; }
docstring: Get a list of Resources.
  
  @param array $filters
  @param null|string one of 'shared_with', 'owned_by' and 'provided_by'
  
  @return \Hub\Client\Model\Resource[]
docstring_tokens: Get a list of Resources .