1 | <?php |
||
9 | class NotificationBuilder |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * @var null|string |
||
14 | */ |
||
15 | protected $title; |
||
16 | |||
17 | /** |
||
18 | * @var null|string |
||
19 | */ |
||
20 | protected $body; |
||
21 | |||
22 | /** |
||
23 | * @var null|string |
||
24 | */ |
||
25 | protected $sound; |
||
26 | |||
27 | /** |
||
28 | * @var null|string |
||
29 | */ |
||
30 | protected $badge; |
||
31 | |||
32 | /** |
||
33 | * @var null|string |
||
34 | */ |
||
35 | protected $icon; |
||
36 | |||
37 | /** |
||
38 | * @var null|string |
||
39 | */ |
||
40 | protected $tag; |
||
41 | |||
42 | /** |
||
43 | * @var null|string |
||
44 | */ |
||
45 | protected $color; |
||
46 | |||
47 | /** |
||
48 | * @var null|string |
||
49 | */ |
||
50 | protected $clickAction; |
||
51 | |||
52 | /** |
||
53 | * @var null|string |
||
54 | */ |
||
55 | protected $bodyLocalizationKey; |
||
56 | |||
57 | /** |
||
58 | * @var null|string |
||
59 | */ |
||
60 | protected $bodyLocalizationArgs; |
||
61 | |||
62 | /** |
||
63 | * @var null|string |
||
64 | */ |
||
65 | protected $titleLocalizationKey; |
||
66 | |||
67 | /** |
||
68 | * @var null|string |
||
69 | */ |
||
70 | protected $titleLocalizationArgs; |
||
71 | |||
72 | /** |
||
73 | * NotificationBuilder constructor. |
||
74 | * @param string $title |
||
75 | */ |
||
76 | public function __construct($title) |
||
80 | |||
81 | /** |
||
82 | * @return null|string |
||
83 | */ |
||
84 | public function getTitle() |
||
88 | |||
89 | /** |
||
90 | * @return null|string |
||
91 | */ |
||
92 | public function getBody() |
||
96 | |||
97 | /** |
||
98 | * @param null|string $body |
||
99 | * @return $this |
||
100 | */ |
||
101 | public function setBody($body) |
||
107 | |||
108 | /** |
||
109 | * @return null|string |
||
110 | */ |
||
111 | public function getSound() |
||
115 | |||
116 | /** |
||
117 | * @param null|string $sound |
||
118 | * @return $this |
||
119 | */ |
||
120 | public function setSound($sound) |
||
126 | |||
127 | /** |
||
128 | * @return null|string |
||
129 | */ |
||
130 | public function getBadge() |
||
134 | |||
135 | /** |
||
136 | * @param null|string $badge |
||
137 | * @return $this |
||
138 | */ |
||
139 | public function setBadge($badge) |
||
145 | |||
146 | /** |
||
147 | * @return null|string |
||
148 | */ |
||
149 | public function getIcon() |
||
153 | |||
154 | /** |
||
155 | * @param null|string $icon |
||
156 | * @return $this |
||
157 | */ |
||
158 | public function setIcon($icon) |
||
164 | |||
165 | /** |
||
166 | * @return null|string |
||
167 | */ |
||
168 | public function getTag() |
||
172 | |||
173 | /** |
||
174 | * @param null|string $tag |
||
175 | * @return $this |
||
176 | */ |
||
177 | public function setTag($tag) |
||
183 | |||
184 | /** |
||
185 | * @return null|string |
||
186 | */ |
||
187 | public function getColor() |
||
191 | |||
192 | /** |
||
193 | * @param null|string $color |
||
194 | * @return $this |
||
195 | */ |
||
196 | public function setColor($color) |
||
202 | |||
203 | /** |
||
204 | * @return null|string |
||
205 | */ |
||
206 | public function getClickAction() |
||
210 | |||
211 | /** |
||
212 | * @param null|string $clickAction |
||
213 | * @return $this |
||
214 | */ |
||
215 | public function setClickAction($clickAction) |
||
221 | |||
222 | /** |
||
223 | * @return null|string |
||
224 | */ |
||
225 | public function getBodyLocalizationKey() |
||
229 | |||
230 | /** |
||
231 | * @param null|string $bodyLocalizationKey |
||
232 | * @return $this |
||
233 | */ |
||
234 | public function setBodyLocalizationKey($bodyLocalizationKey) |
||
240 | |||
241 | /** |
||
242 | * @return null|string |
||
243 | */ |
||
244 | public function getBodyLocalizationArgs() |
||
248 | |||
249 | /** |
||
250 | * @param null|string $bodyLocalizationArgs |
||
251 | * @return $this |
||
252 | */ |
||
253 | public function setBodyLocalizationArgs($bodyLocalizationArgs) |
||
259 | |||
260 | /** |
||
261 | * @return null|string |
||
262 | */ |
||
263 | public function getTitleLocalizationKey() |
||
267 | |||
268 | /** |
||
269 | * @param null|string $titleLocalizationKey |
||
270 | * @return $this |
||
271 | */ |
||
272 | public function setTitleLocalizationKey($titleLocalizationKey) |
||
278 | |||
279 | /** |
||
280 | * @return null|string |
||
281 | */ |
||
282 | public function getTitleLocalizationArgs() |
||
286 | |||
287 | /** |
||
288 | * @param null|string $titleLocalizationArgs |
||
289 | * @return $this |
||
290 | */ |
||
291 | public function setTitleLocalizationArgs($titleLocalizationArgs) |
||
297 | } |