public function useHttpClient($httpClient): self
    {
        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;

        return $this;
    }
public function useHttpClient($httpClient): self
    {
        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;

        return $this;
    }
public function useHttpClient ( $ httpClient ) : self { 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 ; return $ this ; }
Uses the given http client.

@param HttpClient|ClientInterface $httpClient

@return Builder
Uses the given http client .