src/Bridge.php
public function setClient($endpoint = null)
    {
        // Create client using API endpoint.
        $this->client = new Client([
                                       'base_uri' => ! is_null($endpoint) ? $endpoint : $this->endpoint,
                                   ]);

        return $this;
    }
public function setClient($endpoint = null)
    {
        // Create client using API endpoint.
        $this->client = new Client([
                                       'base_uri' => ! is_null($endpoint) ? $endpoint : $this->endpoint,
                                   ]);

        return $this;
    }
public function setClient ( $ endpoint = null ) { // Create client using API endpoint. $ this -> client = new Client ( [ 'base_uri' => ! is_null ( $ endpoint ) ? $ endpoint : $ this -> endpoint , ] ) ; return $ this ; }
Creates the http client.

@param string $endpoint

@return $this
Creates the http client .