src/MultiCurlManager.php
protected function processCurlResponse(int $statusCode, $curlHandle)
    {
        foreach ($this->runningRequests as $index => $request) {
            if ($request->getCurl()->getHandle() === $curlHandle) {
                $this->parseResponse($request, $statusCode)
                     ->triggerCallback($request->getOnCompleteCallback(), $request);

                $this->multiCurl->removeCurl($request->getCurl());
                unset($this->runningRequests[$index]);
                break;
            }
        }
        return $this;
    }
protected function processCurlResponse(int $statusCode, $curlHandle)
    {
        foreach ($this->runningRequests as $index => $request) {
            if ($request->getCurl()->getHandle() === $curlHandle) {
                $this->parseResponse($request, $statusCode)
                     ->triggerCallback($request->getOnCompleteCallback(), $request);

                $this->multiCurl->removeCurl($request->getCurl());
                unset($this->runningRequests[$index]);
                break;
            }
        }
        return $this;
    }
protected function processCurlResponse ( int $ statusCode , $ curlHandle ) { foreach ( $ this -> runningRequests as $ index => $ request ) { if ( $ request -> getCurl ( ) -> getHandle ( ) === $ curlHandle ) { $ this -> parseResponse ( $ request , $ statusCode ) -> triggerCallback ( $ request -> getOnCompleteCallback ( ) , $ request ) ; $ this -> multiCurl -> removeCurl ( $ request -> getCurl ( ) ) ; unset ( $ this -> runningRequests [ $ index ] ) ; break ; } } return $ this ; }
processes the response of the specified curl handle.
@param int $statusCode
@param resource $curlHandle
@return $this
processes the response of the specified curl handle .