src/MultiCurlManager.php
protected function parseResponse(Request $request, int $errorCode)
    {
        $curl = $request->getCurl();
        $response = $request->getResponse();

        $response->setErrorCode($errorCode)
                 ->setErrorMessage($curl->getErrorMessage());
        if ($errorCode === CURLE_OK) {
            $this->hydrateResponseFromCurl($response, $curl);
        }
        return $this;
    }
protected function parseResponse(Request $request, int $errorCode)
    {
        $curl = $request->getCurl();
        $response = $request->getResponse();

        $response->setErrorCode($errorCode)
                 ->setErrorMessage($curl->getErrorMessage());
        if ($errorCode === CURLE_OK) {
            $this->hydrateResponseFromCurl($response, $curl);
        }
        return $this;
    }
protected function parseResponse ( Request $ request , int $ errorCode ) { $ curl = $ request -> getCurl ( ) ; $ response = $ request -> getResponse ( ) ; $ response -> setErrorCode ( $ errorCode ) -> setErrorMessage ( $ curl -> getErrorMessage ( ) ) ; if ( $ errorCode === CURLE_OK ) { $ this -> hydrateResponseFromCurl ( $ response , $ curl ) ; } return $ this ; }
Creates the response of the specified request.
@param Request $request
@param int $errorCode
@return $this
Creates the response of the specified request .