public function process(HttpRequest $curl)
    {
        $data = $curl->getData();
        $additionalData = $curl->getAdditionalData();
        $callback = $additionalData['callback'];
        unset($additionalData['callback']);

        $obj = new HttpResult($data['response'], $data['curlInfo'], $curl->getCurlError(), $additionalData);
        call_user_func($callback, $obj);
    }
public function process(HttpRequest $curl)
    {
        $data = $curl->getData();
        $additionalData = $curl->getAdditionalData();
        $callback = $additionalData['callback'];
        unset($additionalData['callback']);

        $obj = new HttpResult($data['response'], $data['curlInfo'], $curl->getCurlError(), $additionalData);
        call_user_func($callback, $obj);
    }
public function process ( HttpRequest $ curl ) { $ data = $ curl -> getData ( ) ; $ additionalData = $ curl -> getAdditionalData ( ) ; $ callback = $ additionalData [ 'callback' ] ; unset ( $ additionalData [ 'callback' ] ) ; $ obj = new HttpResult ( $ data [ 'response' ] , $ data [ 'curlInfo' ] , $ curl -> getCurlError ( ) , $ additionalData ) ; call_user_func ( $ callback , $ obj ) ; }
processes the request return value
@param HttpRequest $curl
processes the request return value