succeedCallback = $succeedCallback; $this->failedCallback = $failedCallback; } public function onSucceed(BaseResponse $result) { return call_user_func($this->succeedCallback, $result); } public function onFailed(MnsException $e) { return call_user_func($this->failedCallback, $e); } } ?>