1 | <?php |
||
16 | class DataboxStatus |
||
17 | { |
||
18 | /** |
||
19 | * @param \stdClass[] $values |
||
20 | * @return DataboxStatus[] |
||
21 | */ |
||
22 | 1 | public static function fromList(array $values) |
|
32 | |||
33 | /** |
||
34 | * @param \stdClass $value |
||
35 | * @return DataboxStatus |
||
36 | */ |
||
37 | 1 | public static function fromValue(\stdClass $value) |
|
41 | |||
42 | /** |
||
43 | * @var \stdClass |
||
44 | */ |
||
45 | protected $source; |
||
46 | |||
47 | /** |
||
48 | * @var ArrayCollection |
||
49 | */ |
||
50 | protected $labels; |
||
51 | |||
52 | /** |
||
53 | * @param \stdClass $source |
||
54 | */ |
||
55 | 1 | public function __construct(\stdClass $source) |
|
59 | |||
60 | /** |
||
61 | * @return \stdClass |
||
62 | */ |
||
63 | public function getRawData() |
||
67 | 1 | ||
68 | /** |
||
69 | * Get the status bit |
||
70 | * |
||
71 | * @return integer |
||
72 | */ |
||
73 | public function getBit() |
||
77 | 1 | ||
78 | /** |
||
79 | * Get the label status for the ON status state |
||
80 | * |
||
81 | * @return string |
||
82 | */ |
||
83 | public function getLabelOn() |
||
87 | 1 | ||
88 | /** |
||
89 | * Get the label status for the OFF status state |
||
90 | * |
||
91 | * @return string |
||
92 | */ |
||
93 | public function getLabelOff() |
||
97 | 1 | ||
98 | /** |
||
99 | * Get the image for the ON status state |
||
100 | * |
||
101 | * @return string |
||
102 | */ |
||
103 | public function getImgOn() |
||
107 | 1 | ||
108 | /** |
||
109 | * Get the image for the OFF status state |
||
110 | * |
||
111 | * @return string |
||
112 | */ |
||
113 | public function getImgOff() |
||
117 | 1 | ||
118 | /** |
||
119 | * Tell whether the status is searchable |
||
120 | * |
||
121 | * @return Boolean |
||
122 | */ |
||
123 | public function isSearchable() |
||
127 | 1 | ||
128 | /** |
||
129 | * Tell whether the status is printable |
||
130 | * |
||
131 | * @return Boolean |
||
132 | */ |
||
133 | 1 | public function isPrintable() |
|
137 | |||
138 | /** |
||
139 | * @return mixed |
||
140 | */ |
||
141 | public function getLabels() |
||
145 | } |
||
146 |