/**
  * {@inheritdoc}
  */
 public function serializeResponse($version, AbstractResponse $response)
 {
     return json_encode(array_merge(['jsonrpc' => $version], $response->toArray()));
 }
예제 #2
0
 /**
  * @return array
  */
 public function toArray()
 {
     return array_merge(parent::toArray(), ['result' => $this->getResult()]);
 }
예제 #3
0
 /**
  * @return array
  */
 public function toArray()
 {
     return array_merge(parent::toArray(), ['error' => $this->getError()->toArray()]);
 }