/** * @param ClientSession $session * @param ResultMessage $msg */ public function processResult(ClientSession $session, ResultMessage $msg) { if (isset($this->callRequests[$msg->getRequestId()])) { /* @var $futureResult Deferred */ $futureResult = $this->callRequests[$msg->getRequestId()]['future_result']; $futureResult->resolve($msg->getArguments()); unset($this->callRequests[$msg->getRequestId()]); } }
/** * Constructor * * @param \Thruway\Message\ResultMessage $msg */ public function __construct(ResultMessage $msg) { $this->resultMessage = $msg; parent::__construct($msg->getArguments()); }