1 | <?php |
||
20 | class ApnsMessage extends Message |
||
21 | { |
||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | private $alertTitle; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $alertBody; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | private $alertTitleLocKey; |
||
36 | |||
37 | /** |
||
38 | * @var array |
||
39 | */ |
||
40 | private $alertTitleLocArgs; |
||
41 | |||
42 | /** |
||
43 | * @var string |
||
44 | */ |
||
45 | private $alertActionLocKey; |
||
46 | |||
47 | /** |
||
48 | * @var string |
||
49 | */ |
||
50 | private $alertLocKey; |
||
51 | |||
52 | /** |
||
53 | * @var array |
||
54 | */ |
||
55 | private $alertLocArgs; |
||
56 | |||
57 | /** |
||
58 | * @var string |
||
59 | */ |
||
60 | private $alertLaunchImage; |
||
61 | |||
62 | /** |
||
63 | * @var string |
||
64 | */ |
||
65 | private $badge; |
||
66 | |||
67 | /** |
||
68 | * @var string |
||
69 | */ |
||
70 | private $sound; |
||
71 | |||
72 | /** |
||
73 | * @var int |
||
74 | */ |
||
75 | private $contentAvailable; |
||
76 | |||
77 | /** |
||
78 | * @var string |
||
79 | */ |
||
80 | private $category; |
||
81 | |||
82 | /** |
||
83 | * @var array |
||
84 | */ |
||
85 | private $data; |
||
86 | |||
87 | /** |
||
88 | * Constructor |
||
89 | */ |
||
90 | 35 | public function __construct() |
|
98 | |||
99 | /** |
||
100 | * @return array |
||
101 | */ |
||
102 | 2 | public function getPayload() |
|
125 | |||
126 | /** |
||
127 | * Get the value of Alert Title. |
||
128 | * |
||
129 | * @return string |
||
130 | */ |
||
131 | 3 | public function getAlertTitle() |
|
135 | |||
136 | /** |
||
137 | * Set the value of Alert Title. |
||
138 | * |
||
139 | * @param string $alertTitle |
||
140 | * |
||
141 | * @return self |
||
142 | */ |
||
143 | 1 | public function setAlertTitle($alertTitle) |
|
149 | |||
150 | /** |
||
151 | * Get the value of Alert Body. |
||
152 | * |
||
153 | * @return string |
||
154 | */ |
||
155 | 3 | public function getAlertBody() |
|
159 | |||
160 | /** |
||
161 | * Set the value of Alert Body. |
||
162 | * |
||
163 | * @param string $alertBody |
||
164 | * |
||
165 | * @return self |
||
166 | */ |
||
167 | 1 | public function setAlertBody($alertBody) |
|
173 | |||
174 | /** |
||
175 | * Get the value of Alert Title Loc Key. |
||
176 | * |
||
177 | * @return string |
||
178 | */ |
||
179 | 3 | public function getAlertTitleLocKey() |
|
183 | |||
184 | /** |
||
185 | * Set the value of Alert Title Loc Key. |
||
186 | * |
||
187 | * @param string $alertTitleLocKey |
||
188 | * |
||
189 | * @return self |
||
190 | */ |
||
191 | 1 | public function setAlertTitleLocKey($alertTitleLocKey) |
|
197 | |||
198 | /** |
||
199 | * Get the value of Alert Title Loc Args. |
||
200 | * |
||
201 | * @return array |
||
202 | */ |
||
203 | 3 | public function getAlertTitleLocArgs() |
|
207 | |||
208 | /** |
||
209 | * Set the value of Alert Title Loc Args. |
||
210 | * |
||
211 | * @param array $alertTitleLocArgs |
||
212 | * |
||
213 | * @return self |
||
214 | */ |
||
215 | 1 | public function setAlertTitleLocArgs(array $alertTitleLocArgs) |
|
221 | |||
222 | /** |
||
223 | * Get the value of Alert Action Loc Key. |
||
224 | * |
||
225 | * @return string |
||
226 | */ |
||
227 | 3 | public function getAlertActionLocKey() |
|
231 | |||
232 | /** |
||
233 | * Set the value of Alert Action Loc Key. |
||
234 | * |
||
235 | * @param string $alertActionLocKey |
||
236 | * |
||
237 | * @return self |
||
238 | */ |
||
239 | 1 | public function setAlertActionLocKey($alertActionLocKey) |
|
245 | |||
246 | /** |
||
247 | * Get the value of Alert Loc Key. |
||
248 | * |
||
249 | * @return string |
||
250 | */ |
||
251 | 3 | public function getAlertLocKey() |
|
255 | |||
256 | /** |
||
257 | * Set the value of Alert Loc Key. |
||
258 | * |
||
259 | * @param string $alertLocKey |
||
260 | * |
||
261 | * @return self |
||
262 | */ |
||
263 | 1 | public function setAlertLocKey($alertLocKey) |
|
269 | |||
270 | /** |
||
271 | * Get the value of Alert Loc Args. |
||
272 | * |
||
273 | * @return array |
||
274 | */ |
||
275 | 3 | public function getAlertLocArgs() |
|
279 | |||
280 | /** |
||
281 | * Set the value of Alert Loc Args. |
||
282 | * |
||
283 | * @param array $alertLocArgs |
||
284 | * |
||
285 | * @return self |
||
286 | */ |
||
287 | 1 | public function setAlertLocArgs(array $alertLocArgs) |
|
293 | |||
294 | /** |
||
295 | * Get the value of Alert Launch Image. |
||
296 | * |
||
297 | * @return string |
||
298 | */ |
||
299 | 3 | public function getAlertLaunchImage() |
|
303 | |||
304 | /** |
||
305 | * Set the value of Alert Launch Image. |
||
306 | * |
||
307 | * @param string $alertLaunchImage |
||
308 | * |
||
309 | * @return self |
||
310 | */ |
||
311 | 1 | public function setAlertLaunchImage($alertLaunchImage) |
|
317 | |||
318 | /** |
||
319 | * Get the value of Badge. |
||
320 | * |
||
321 | * @return string |
||
322 | */ |
||
323 | 3 | public function getBadge() |
|
327 | |||
328 | /** |
||
329 | * Set the value of Badge. |
||
330 | * |
||
331 | * @param string $badge |
||
332 | * |
||
333 | * @return self |
||
334 | */ |
||
335 | 1 | public function setBadge($badge) |
|
341 | |||
342 | /** |
||
343 | * Get the value of Sound. |
||
344 | * |
||
345 | * @return string |
||
346 | */ |
||
347 | 4 | public function getSound() |
|
351 | |||
352 | /** |
||
353 | * Set the value of Sound. |
||
354 | * |
||
355 | * @param string $sound |
||
356 | * |
||
357 | * @return self |
||
358 | */ |
||
359 | 1 | public function setSound($sound) |
|
365 | |||
366 | /** |
||
367 | * Get the value of Content Available. |
||
368 | * |
||
369 | * @return int |
||
370 | */ |
||
371 | 3 | public function getContentAvailable() |
|
375 | |||
376 | /** |
||
377 | * Set the value of Content Available. |
||
378 | * |
||
379 | * @param int $contentAvailable |
||
380 | * |
||
381 | * @return self |
||
382 | */ |
||
383 | 1 | public function setContentAvailable($contentAvailable) |
|
389 | |||
390 | /** |
||
391 | * Get the value of Category. |
||
392 | * |
||
393 | * @return string |
||
394 | */ |
||
395 | 3 | public function getCategory() |
|
399 | |||
400 | /** |
||
401 | * Set the value of Category. |
||
402 | * |
||
403 | * @param string $category |
||
404 | * |
||
405 | * @return self |
||
406 | */ |
||
407 | 1 | public function setCategory($category) |
|
413 | |||
414 | /** |
||
415 | * Get the data array. |
||
416 | * |
||
417 | * @return array |
||
418 | */ |
||
419 | 5 | public function getData() |
|
423 | |||
424 | /** |
||
425 | * Set the data array. |
||
426 | * |
||
427 | * @param array $data |
||
428 | * |
||
429 | * @return self |
||
430 | */ |
||
431 | 4 | public function setData(array $data) |
|
441 | |||
442 | /** |
||
443 | * Add a value at a specific key to the data array. |
||
444 | * |
||
445 | * @param string $key |
||
446 | * @param string $value |
||
447 | * |
||
448 | * @return self |
||
449 | */ |
||
450 | 2 | public function addData($key, $value) |
|
458 | } |
||
459 |