home-school-contact-app/源码/php/AiYaSchoolPush/xmpush/Result.php

31 lines
480 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* 服务器返回的结果.
* @author wangkuiwei
* @name Result
* @desc Sender发送消息后服务器返回的结果。
*
*/
namespace xmpush;
class Result {
private $errorCode;
private $raw;
public function __construct($jsonStr){
$data = json_decode($jsonStr,true);
$this->raw = $data;
$this->errorCode = $data['code'];
}
public function getErrorCode(){
return $this->errorCode;
}
public function getRaw(){
return $this->raw;
}
}
?>