public function setSession($id) { if ($this->client instanceof Sessionable) { $this->client->setSession($id); } }