1 | <?php |
||
11 | class Beacon |
||
12 | { |
||
13 | const DEVICE_TYPE_BEACON = 'BEACON'; |
||
14 | const DEVICE_TYPE_CLOUD_BEACON = 'CLOUD_BEACON'; |
||
15 | |||
16 | /** |
||
17 | * Beacon ID. |
||
18 | * |
||
19 | * @var string |
||
20 | * |
||
21 | * @JMS\Type("string") |
||
22 | * @JMS\SerializedName("id") |
||
23 | */ |
||
24 | protected $id; |
||
25 | |||
26 | /** |
||
27 | * UUID. |
||
28 | * |
||
29 | * @var string |
||
30 | * |
||
31 | * @JMS\Type("string") |
||
32 | * @JMS\SerializedName("uuid") |
||
33 | */ |
||
34 | protected $uuid; |
||
35 | |||
36 | /** |
||
37 | * Major. |
||
38 | * |
||
39 | * @var integer |
||
40 | * |
||
41 | * @JMS\Type("integer") |
||
42 | * @JMS\SerializedName("major") |
||
43 | */ |
||
44 | protected $major; |
||
45 | |||
46 | /** |
||
47 | * Minor. |
||
48 | * |
||
49 | * @var integer |
||
50 | * |
||
51 | * @JMS\Type("integer") |
||
52 | * @JMS\SerializedName("minor") |
||
53 | */ |
||
54 | protected $minor; |
||
55 | |||
56 | /** |
||
57 | * MAC address of the beacon. |
||
58 | * |
||
59 | * @var string |
||
60 | * |
||
61 | * @JMS\Type("string") |
||
62 | * @JMS\SerializedName("mac") |
||
63 | */ |
||
64 | protected $mac; |
||
65 | |||
66 | /** |
||
67 | * Device name. |
||
68 | * |
||
69 | * @var string |
||
70 | * |
||
71 | * @JMS\Type("string") |
||
72 | * @JMS\SerializedName("name") |
||
73 | */ |
||
74 | protected $name; |
||
75 | |||
76 | /** |
||
77 | * Beacon settings. |
||
78 | * |
||
79 | * @var Settings |
||
80 | * |
||
81 | * @JMS\Type("Speicher210\Estimote\Model\Beacon\Settings") |
||
82 | * @JMS\SerializedName("settings") |
||
83 | */ |
||
84 | protected $settings; |
||
85 | |||
86 | /** |
||
87 | * Get the ID. |
||
88 | * |
||
89 | * @return string |
||
90 | */ |
||
91 | public function getId() |
||
95 | |||
96 | /** |
||
97 | * Set the ID. |
||
98 | * |
||
99 | * @param string $id The ID. |
||
100 | * @return Beacon |
||
101 | */ |
||
102 | public function setId($id) |
||
108 | |||
109 | /** |
||
110 | * Get the UUID. |
||
111 | * |
||
112 | * @return string |
||
113 | */ |
||
114 | public function getUuid() |
||
118 | |||
119 | /** |
||
120 | * Set the UUID. |
||
121 | * |
||
122 | * @param string $uuid The UUID to set. |
||
123 | */ |
||
124 | public function setUuid($uuid) |
||
128 | |||
129 | /** |
||
130 | * Get the major. |
||
131 | * |
||
132 | * @return integer |
||
133 | */ |
||
134 | public function getMajor() |
||
138 | |||
139 | /** |
||
140 | * Set the major. |
||
141 | * |
||
142 | * @param integer $major The major. |
||
143 | * @return Beacon |
||
144 | */ |
||
145 | public function setMajor($major) |
||
151 | |||
152 | /** |
||
153 | * Get the minor. |
||
154 | * |
||
155 | * @return integer |
||
156 | */ |
||
157 | public function getMinor() |
||
161 | |||
162 | /** |
||
163 | * Set the minor. |
||
164 | * |
||
165 | * @param integer $minor The minor. |
||
166 | * @return Beacon |
||
167 | */ |
||
168 | public function setMinor($minor) |
||
174 | |||
175 | /** |
||
176 | * Get the MAC. |
||
177 | * |
||
178 | * @return string |
||
179 | */ |
||
180 | public function getMac() |
||
184 | |||
185 | /** |
||
186 | * Set the MAC. |
||
187 | * |
||
188 | * @param string $mac The mac. |
||
189 | * @return Beacon |
||
190 | */ |
||
191 | public function setMac($mac) |
||
197 | |||
198 | /** |
||
199 | * Get the name. |
||
200 | * |
||
201 | * @return string |
||
202 | */ |
||
203 | public function getName() |
||
207 | |||
208 | /** |
||
209 | * Set the name. |
||
210 | * |
||
211 | * @param string $name The name. |
||
212 | * @return Beacon |
||
213 | */ |
||
214 | public function setName($name) |
||
220 | |||
221 | /** |
||
222 | * Get the beacon settings. |
||
223 | * |
||
224 | * @return Settings |
||
225 | */ |
||
226 | public function getSettings() |
||
230 | |||
231 | /** |
||
232 | * Set the beacon settings. |
||
233 | * |
||
234 | * @param Settings $settings The settings. |
||
235 | */ |
||
236 | public function setSettings(Settings $settings) |
||
240 | } |
||
241 |