public function setHttpClient(Client $client = null)
    {
        if ($client === null) {
            $client = new Client(
                HttpClientDiscovery::find(),
                MessageFactoryDiscovery::find()
            );
        }
        $this->client = $client;
        return $this;
    }
public function setHttpClient(Client $client = null)
    {
        if ($client === null) {
            $client = new Client(
                HttpClientDiscovery::find(),
                MessageFactoryDiscovery::find()
            );
        }
        $this->client = $client;
        return $this;
    }
public function setHttpClient ( Client $ client = null ) { if ( $ client === null ) { $ client = new Client ( HttpClientDiscovery :: find ( ) , MessageFactoryDiscovery :: find ( ) ) ; } $ this -> client = $ client ; return $ this ; }
Sets the client to be used for querying the API endpoints

@param Client $client
@see http://php-http.readthedocs.org/en/latest/utils/#httpmethodsclient
@return $this
Sets the client to be used for querying the API endpoints