1 | <?php |
||
26 | class CombinedPayload implements AndroidPayloadInterface, IosPayloadInterface, WebPayloadInterface |
||
27 | { |
||
28 | private DataPayload $dataPayload; |
||
|
|||
29 | |||
30 | private AbstractCommonNotificationPayload $notificationPayload; |
||
31 | |||
32 | /** |
||
33 | * @param DataPayload $dataPayload |
||
34 | * |
||
35 | * @return $this |
||
36 | */ |
||
37 | public function setDataPayload(DataPayload $dataPayload): self |
||
38 | { |
||
39 | $this->dataPayload = $dataPayload; |
||
40 | |||
41 | return $this; |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * @return DataPayload |
||
46 | */ |
||
47 | public function getDataPayload(): DataPayload |
||
48 | { |
||
49 | return $this->dataPayload; |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * @param AbstractCommonNotificationPayload $notificationPayload |
||
54 | * |
||
55 | * @return $this |
||
56 | */ |
||
57 | public function setNotificationPayload(AbstractCommonNotificationPayload $notificationPayload): self |
||
58 | { |
||
59 | $this->notificationPayload = $notificationPayload; |
||
60 | |||
61 | return $this; |
||
62 | } |
||
63 | |||
64 | /** |
||
65 | * @return AbstractCommonNotificationPayload |
||
66 | */ |
||
67 | public function getNotificationPayload(): AbstractCommonNotificationPayload |
||
68 | { |
||
69 | return $this->notificationPayload; |
||
70 | } |
||
71 | } |
||
72 |