1 | <?php |
||
5 | class AndroidConfig implements FcmResource |
||
6 | { |
||
7 | /** |
||
8 | * @var string|null |
||
9 | */ |
||
10 | protected $collapseKey; |
||
11 | |||
12 | /** |
||
13 | * @var AndroidMessagePriority|null |
||
14 | */ |
||
15 | protected $priority; |
||
16 | |||
17 | /** |
||
18 | * @var string|null |
||
19 | */ |
||
20 | protected $ttl; |
||
21 | |||
22 | /** |
||
23 | * @var string|null |
||
24 | */ |
||
25 | protected $restrictedPackageName; |
||
26 | |||
27 | /** |
||
28 | * @var array|null |
||
29 | */ |
||
30 | protected $data; |
||
31 | |||
32 | /** |
||
33 | * @var AndroidNotification|null |
||
34 | */ |
||
35 | protected $notification; |
||
36 | |||
37 | /** |
||
38 | * @var AndroidFcmOptions|null |
||
39 | */ |
||
40 | protected $fcmOptions; |
||
41 | |||
42 | /** |
||
43 | * @return static |
||
44 | */ |
||
45 | public static function create(): self |
||
49 | |||
50 | /** |
||
51 | * @return string|null |
||
52 | */ |
||
53 | public function getCollapseKey(): ?string |
||
57 | |||
58 | /** |
||
59 | * @param string|null $collapseKey |
||
60 | * @return AndroidConfig |
||
61 | */ |
||
62 | public function setCollapseKey(?string $collapseKey): self |
||
68 | |||
69 | /** |
||
70 | * @return AndroidMessagePriority|null |
||
71 | */ |
||
72 | public function getPriority(): ?AndroidMessagePriority |
||
76 | |||
77 | /** |
||
78 | * @param AndroidMessagePriority|null $priority |
||
79 | * @return AndroidConfig |
||
80 | */ |
||
81 | public function setPriority(?AndroidMessagePriority $priority): self |
||
87 | |||
88 | /** |
||
89 | * @return string|null |
||
90 | */ |
||
91 | public function getTtl(): ?string |
||
95 | |||
96 | /** |
||
97 | * @param string|null $ttl |
||
98 | * @return AndroidConfig |
||
99 | */ |
||
100 | public function setTtl(?string $ttl): self |
||
106 | |||
107 | /** |
||
108 | * @return string|null |
||
109 | */ |
||
110 | public function getRestrictedPackageName(): ?string |
||
114 | |||
115 | /** |
||
116 | * @param string|null $restrictedPackageName |
||
117 | * @return AndroidConfig |
||
118 | */ |
||
119 | public function setRestrictedPackageName(?string $restrictedPackageName): self |
||
125 | |||
126 | /** |
||
127 | * @return array|null |
||
128 | */ |
||
129 | public function getData(): ?array |
||
133 | |||
134 | /** |
||
135 | * @param array|null $data |
||
136 | * @return AndroidConfig |
||
137 | */ |
||
138 | public function setData(?array $data): self |
||
144 | |||
145 | /** |
||
146 | * @return AndroidNotification|null |
||
147 | */ |
||
148 | public function getNotification(): ?AndroidNotification |
||
152 | |||
153 | /** |
||
154 | * @param AndroidNotification|null $notification |
||
155 | * @return AndroidConfig |
||
156 | */ |
||
157 | public function setNotification(?AndroidNotification $notification): self |
||
163 | |||
164 | /** |
||
165 | * @return AndroidFcmOptions|null |
||
166 | */ |
||
167 | public function getFcmOptions(): ?AndroidFcmOptions |
||
171 | |||
172 | /** |
||
173 | * @param AndroidFcmOptions|null $fcmOptions |
||
174 | * @return AndroidConfig |
||
175 | */ |
||
176 | public function setFcmOptions(?AndroidFcmOptions $fcmOptions): self |
||
182 | |||
183 | /** |
||
184 | * {@inheritdoc} |
||
185 | */ |
||
186 | public function toArray(): array |
||
198 | } |
||
199 |