private function initializeClient($url, HttpClient $client = null)
    {
        if ($client) {
            return $this->client = $client;
        }

        return $this->client = $this->createDefaultHttpClient($url);
    }
private function initializeClient($url, HttpClient $client = null)
    {
        if ($client) {
            return $this->client = $client;
        }

        return $this->client = $this->createDefaultHttpClient($url);
    }
private function initializeClient ( $ url , HttpClient $ client = null ) { if ( $ client ) { return $ this -> client = $ client ; } return $ this -> client = $ this -> createDefaultHttpClient ( $ url ) ; }
initializes the http client.

@param string     $url
@param HttpClient $client

@return HttpClient
initializes the http client .