public function getHandler() { if (!$this->handler) { $this->handler = new Client($this->settings, $this->settings['options']); } return $this->handler; }