|
@@ -0,0 +1,46 @@
|
|
1
|
+<?php
|
|
2
|
+
|
|
3
|
+namespace Luticate\Utils;
|
|
4
|
+
|
|
5
|
+class LuMultipleBdo implements \JsonSerializable {
|
|
6
|
+
|
|
7
|
+ /**
|
|
8
|
+ * @var int
|
|
9
|
+ */
|
|
10
|
+ private $_count;
|
|
11
|
+ public function setCount($count)
|
|
12
|
+ {
|
|
13
|
+ $this->_count = $count;
|
|
14
|
+ }
|
|
15
|
+ public function getCount()
|
|
16
|
+ {
|
|
17
|
+ return $this->_count;
|
|
18
|
+ }
|
|
19
|
+
|
|
20
|
+ /**
|
|
21
|
+ * @var array
|
|
22
|
+ */
|
|
23
|
+ private $_data;
|
|
24
|
+ public function setData($data)
|
|
25
|
+ {
|
|
26
|
+ $this->_data = $data;
|
|
27
|
+ }
|
|
28
|
+ public function getData()
|
|
29
|
+ {
|
|
30
|
+ return $this->_data;
|
|
31
|
+ }
|
|
32
|
+
|
|
33
|
+ function jsonSerialize()
|
|
34
|
+ {
|
|
35
|
+ return array(
|
|
36
|
+ "Count" => $this->_count,
|
|
37
|
+ "Data" => $this->_data
|
|
38
|
+ );
|
|
39
|
+ }
|
|
40
|
+
|
|
41
|
+ function __construct($count = 0, $data = array())
|
|
42
|
+ {
|
|
43
|
+ $this->_count = $count;
|
|
44
|
+ $this->_data = $data;
|
|
45
|
+ }
|
|
46
|
+}
|