public function withCallback($successCallback, $failedCallback = null, $callbackMode = self::CALLBACK_MODE_HTTP)
    {
        $this->callback = $successCallback;
        $this->failedCallback = $failedCallback;
        $this->callbackMode = $callbackMode;

        return $this;
    }
public function withCallback($successCallback, $failedCallback = null, $callbackMode = self::CALLBACK_MODE_HTTP)
    {
        $this->callback = $successCallback;
        $this->failedCallback = $failedCallback;
        $this->callbackMode = $callbackMode;

        return $this;
    }
public function withCallback ( $ successCallback , $ failedCallback = null , $ callbackMode = self :: CALLBACK_MODE_HTTP ) { $ this -> callback = $ successCallback ; $ this -> failedCallback = $ failedCallback ; $ this -> callbackMode = $ callbackMode ; return $ this ; }
Set up the callbacks.

@param $successCallback
@param null $failedCallback
@param int $callbackMode
@return $this
Set up the callbacks .