public function setClient(array $client) { $this->client = new Client($client); $this->clientId = $this->client->getClientId(); }