Browse Source

fixed LuRequestDbo to lower camel case

develop
Robin Thoni 8 years ago
parent
commit
2888def244
1 changed files with 20 additions and 31 deletions
  1. 20
    31
      src/Utils/Dbo/LuRequestDbo.php

+ 20
- 31
src/Utils/Dbo/LuRequestDbo.php View File

10
 
10
 
11
 class LuRequestDbo extends LuDbo
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
      * @return float
36
      * @return float
44
      */
37
      */
54
         $this->_version = $version;
47
         $this->_version = $version;
55
     }
48
     }
56
 
49
 
57
-    private $_data;
58
     /**
50
     /**
59
      * @return mixed
51
      * @return mixed
60
      */
52
      */
70
         $this->_data = $data;
62
         $this->_data = $data;
71
     }
63
     }
72
 
64
 
73
-    private $_message;
74
     /**
65
     /**
75
      * @return string
66
      * @return string
76
      */
67
      */
86
         $this->_message = $message;
77
         $this->_message = $message;
87
     }
78
     }
88
 
79
 
89
-    private $_statusCode;
90
-
91
     /**
80
     /**
92
      * @return int
81
      * @return int
93
      */
82
      */

Loading…
Cancel
Save