/** * @param \Exception $exception * @param bool $isDebugEnabled * @return array */ protected function _exportExceptionAsArray(\Exception $exception, $isDebugEnabled) { $error = RpcUtil::exceptionAsArray($exception, $isDebugEnabled); return $error; }
/** * @return RpcRequestVo */ public function applyRawData() { $rawData = $this->getRawData(); // extract data $data = RpcUtil::arrayEnsure($rawData, array('id' => null, 'version' => null, 'jsonrpc' => null, 'method' => null, 'params' => null)); $this->setData($data); return $this; }