client = $client; } protected function getClient() { if(isset($this->client)){ return $this->client; } throw new \RuntimeException('Nexmo\Client not set'); } }