|
@@ -10,35 +10,28 @@ namespace Luticate\Utils\Dbo;
|
10
|
10
|
|
11
|
11
|
class LuRequestDbo extends LuDbo
|
12
|
12
|
{
|
13
|
|
- function jsonSerialize()
|
14
|
|
- {
|
15
|
|
- return array(
|
16
|
|
- "Version" => $this->_version,
|
17
|
|
- "Data" => $this->_data,
|
18
|
|
- "Message" => $this->_message,
|
19
|
|
- "StatusCode" => $this->_statusCode
|
20
|
|
- );
|
21
|
|
- }
|
|
13
|
+ /**
|
|
14
|
+ * @var $_version float
|
|
15
|
+ */
|
|
16
|
+ private $_version;
|
22
|
17
|
|
23
|
|
- public static function jsonDeserialize($json)
|
24
|
|
- {
|
25
|
|
- $dbo = new LuRequestDbo();
|
26
|
|
- if (isset($json["Version"])) {
|
27
|
|
- $dbo->setVersion($json["Version"]);
|
28
|
|
- }
|
29
|
|
- if (isset($json["Data"])) {
|
30
|
|
- $dbo->setData($json["Data"]);
|
31
|
|
- }
|
32
|
|
- if (isset($json["Message"])) {
|
33
|
|
- $dbo->setMessage($json["Message"]);
|
34
|
|
- }
|
35
|
|
- if (isset($json["StatusCode"])) {
|
36
|
|
- $dbo->setStatusCode($json["StatusCode"]);
|
37
|
|
- }
|
38
|
|
- return $dbo;
|
39
|
|
- }
|
|
18
|
+ /**
|
|
19
|
+ * @var $_data mixed
|
|
20
|
+ * @nullable
|
|
21
|
+ */
|
|
22
|
+ private $_data;
|
|
23
|
+
|
|
24
|
+ /**
|
|
25
|
+ * @var $_message string
|
|
26
|
+ * @nullable
|
|
27
|
+ */
|
|
28
|
+ private $_message;
|
|
29
|
+
|
|
30
|
+ /**
|
|
31
|
+ * @var $_statusCode int
|
|
32
|
+ */
|
|
33
|
+ private $_statusCode;
|
40
|
34
|
|
41
|
|
- private $_version;
|
42
|
35
|
/**
|
43
|
36
|
* @return float
|
44
|
37
|
*/
|
|
@@ -54,7 +47,6 @@ class LuRequestDbo extends LuDbo
|
54
|
47
|
$this->_version = $version;
|
55
|
48
|
}
|
56
|
49
|
|
57
|
|
- private $_data;
|
58
|
50
|
/**
|
59
|
51
|
* @return mixed
|
60
|
52
|
*/
|
|
@@ -70,7 +62,6 @@ class LuRequestDbo extends LuDbo
|
70
|
62
|
$this->_data = $data;
|
71
|
63
|
}
|
72
|
64
|
|
73
|
|
- private $_message;
|
74
|
65
|
/**
|
75
|
66
|
* @return string
|
76
|
67
|
*/
|
|
@@ -86,8 +77,6 @@ class LuRequestDbo extends LuDbo
|
86
|
77
|
$this->_message = $message;
|
87
|
78
|
}
|
88
|
79
|
|
89
|
|
- private $_statusCode;
|
90
|
|
-
|
91
|
80
|
/**
|
92
|
81
|
* @return int
|
93
|
82
|
*/
|