public function setHttpClient($httpClient): void
    {
        if (!$httpClient instanceof ClientInterface && !$httpClient instanceof HttpClient) {
            throw new \LogicException('Client must be an instance of Http\\Client\\HttpClient or Psr\\Http\\Client\\ClientInterface');
        }

        $this->httpClient = $httpClient;
    }
public function setHttpClient($httpClient): void
    {
        if (!$httpClient instanceof ClientInterface && !$httpClient instanceof HttpClient) {
            throw new \LogicException('Client must be an instance of Http\\Client\\HttpClient or Psr\\Http\\Client\\ClientInterface');
        }

        $this->httpClient = $httpClient;
    }
public function setHttpClient ( $ httpClient ) : void { if ( ! $ httpClient instanceof ClientInterface && ! $ httpClient instanceof HttpClient ) { throw new \ LogicException ( 'Client must be an instance of Http\\Client\\HttpClient or Psr\\Http\\Client\\ClientInterface' ) ; } $ this -> httpClient = $ httpClient ; }
Sets the http client.

@param HttpClient|ClientInterface $httpClient
Sets the http client .