*/ class EmulatedHttpAsyncClient implements HttpClient, HttpAsyncClient { use HttpAsyncClientEmulator; use HttpClientDecorator; /** * @param HttpClient|ClientInterface $httpClient */ public function __construct($httpClient) { if (!($httpClient instanceof HttpClient) && !($httpClient instanceof ClientInterface)) { throw new \LogicException('Client must be an instance of Http\\Client\\HttpClient or Psr\\Http\\Client\\ClientInterface'); } $this->httpClient = $httpClient; } }