/** * request the queries and returns an array of the results * * @return array */ public function execute() { if (empty($this->query) && empty($this->ghostQuery)) { return array(); } $this->allQuery = $this->ghostQuery + $this->query; $queryString = $this->getQueryString(); $response = $this->client->request($queryString); $jsonResponse = json_decode($response->getBody(true)); return $this->parseResult($jsonResponse, count($this->query) > 1); }
/** * @return string */ public function getLogTemplate() { return $this->client->getLogTemplate(); }