public function getClient() { if ($this->client === null) { $this->client = new QueryClient($this->getEndpoint(), $this->getApiKey(), $this->getSecretKey(), $this, $this->getPlatform()); } return $this->client; }