public function addSuccess(RequestInterface $request, ResponseInterface $response): void
    {
        $this->lastRequest = $request;
        $this->lastResponse = $response;
        $this->success = true;
    }
public function addSuccess(RequestInterface $request, ResponseInterface $response): void
    {
        $this->lastRequest = $request;
        $this->lastResponse = $response;
        $this->success = true;
    }
public function addSuccess ( RequestInterface $ request , ResponseInterface $ response ) : void { $ this -> lastRequest = $ request ; $ this -> lastResponse = $ response ; $ this -> success = true ; }
Record a successful call.

@param \Psr\Http\Message\RequestInterface $request Request use to make the call
@param \Psr\Http\Message\ResponseInterface $response Response returned by the call
Record a successful call .