request; } /** * @param null|ResponseInterface $response */ public function setResponse(ResponseInterface $response = null) { $this->response = $response; } /** * Send an HTTP request. * * @param RequestInterface $request Request to send * @param array $options Request options to apply to the given * request and to the transfer. * * @return ResponseInterface * @throws GuzzleException */ public function send(RequestInterface $request, array $options = []): ResponseInterface { $this->request = $request; return $this->response ?: new Response(200); } public function sendAsync(RequestInterface $request, array $options = []): PromiseInterface { throw new \RuntimeException('not implemented'); } public function request($method, $uri, array $options = []): ResponseInterface { throw new \RuntimeException('not implemented'); } public function requestAsync($method, $uri, array $options = []): PromiseInterface { throw new \RuntimeException('not implemented'); } public function getConfig($option = null) { throw new \RuntimeException('not implemented'); } }