private function initializeClient($url, ClientInterface $client = null)
    {
        if ($client) {
            $this->client = $client;
        } else {
            $this->client = new LocalClient($url);
        }
    }
private function initializeClient($url, ClientInterface $client = null)
    {
        if ($client) {
            $this->client = $client;
        } else {
            $this->client = new LocalClient($url);
        }
    }
private function initializeClient ( $ url , ClientInterface $ client = null ) { if ( $ client ) { $ this -> client = $ client ; } else { $ this -> client = new LocalClient ( $ url ) ; } }
Initializes a http or local client

@param string          $url    Base URL of endpoints
@param ClientInterface $client (optional) client to use

@return void
Initializes a http or local client