コード例 #1
0
 public function encodeUsing(\MSF\EncoderInterface $encoder)
 {
     $data = new \stdClass();
     $data->rpc = $this->rpc;
     $data->args = $this->args;
     $this->encoded = $encoder->encode($data);
 }
コード例 #2
0
 public function encodeUsing(\MSF\EncoderInterface $encoder)
 {
     $data = new \stdClass();
     if ($this->errors) {
         $data->errors = $this->errors;
     } else {
         $data->body = $this->body;
     }
     $this->encoded = $encoder->encode($data);
 }