protected function setClient(HttpClient $client = null)
    {
        if ($client instanceof HttpClient) {
            $this->client = $client;
        } else {
            $this->client = new HttpClient([
                'headers' => [
                    'Authorization' => "Bearer {$this->accessToken}",
                ],
            ]);
        }
    }
protected function setClient(HttpClient $client = null)
    {
        if ($client instanceof HttpClient) {
            $this->client = $client;
        } else {
            $this->client = new HttpClient([
                'headers' => [
                    'Authorization' => "Bearer {$this->accessToken}",
                ],
            ]);
        }
    }
protected function setClient ( HttpClient $ client = null ) { if ( $ client instanceof HttpClient ) { $ this -> client = $ client ; } else { $ this -> client = new HttpClient ( [ 'headers' => [ 'Authorization' => "Bearer {$this->accessToken}" , ] , ] ) ; } }
Set Http Client.

@param \GuzzleHttp\Client $client
Set Http Client .