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