public function getClient() { if ($this->client === null) { $this->client = new QueryClient($this); } return $this->client; }