/** * {@inheritdoc} */ public function fetch(array $options = array()) { $options += array('query' => $this->queryParams); try { $response = $this->client->get($this->buildPath(), $options); } catch (RequestException $e) { throw new MpxException(sprintf("Request exception: %s\n%s", $e->getMessage(), print_r($e->getRequest(), TRUE))); } if (!$response instanceof Response) { return NULL; } return $this->client->parseBody($response, $options['query']->get('form')); }