Completed
Branch develop (f935f6)
by Romain
01:43
created

NotificationBuilder::setTitleLocalizationArgs()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
namespace ker0x\Push\Adapter\Fcm\Message;
3
4
5
/**
6
 * Class NotificationBuilder
7
 * @package ker0x\Push\Adapter\Fcm\Message
8
 */
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)
77
    {
78
        $this->title = $title;
79
    }
80
81
    /**
82
     * @return null|string
83
     */
84
    public function getTitle()
85
    {
86
        return $this->title;
87
    }
88
89
    /**
90
     * @return null|string
91
     */
92
    public function getBody()
93
    {
94
        return $this->body;
95
    }
96
97
    /**
98
     * @param null|string $body
99
     * @return $this
100
     */
101
    public function setBody($body)
102
    {
103
        $this->body = $body;
104
105
        return $this;
106
    }
107
108
    /**
109
     * @return null|string
110
     */
111
    public function getSound()
112
    {
113
        return $this->sound;
114
    }
115
116
    /**
117
     * @param null|string $sound
118
     * @return $this
119
     */
120
    public function setSound($sound)
121
    {
122
        $this->sound = $sound;
123
124
        return $this;
125
    }
126
127
    /**
128
     * @return null|string
129
     */
130
    public function getBadge()
131
    {
132
        return $this->badge;
133
    }
134
135
    /**
136
     * @param null|string $badge
137
     * @return $this
138
     */
139
    public function setBadge($badge)
140
    {
141
        $this->badge = $badge;
142
143
        return $this;
144
    }
145
146
    /**
147
     * @return null|string
148
     */
149
    public function getIcon()
150
    {
151
        return $this->icon;
152
    }
153
154
    /**
155
     * @param null|string $icon
156
     * @return $this
157
     */
158
    public function setIcon($icon)
159
    {
160
        $this->icon = $icon;
161
162
        return $this;
163
    }
164
165
    /**
166
     * @return null|string
167
     */
168
    public function getTag()
169
    {
170
        return $this->tag;
171
    }
172
173
    /**
174
     * @param null|string $tag
175
     * @return $this
176
     */
177
    public function setTag($tag)
178
    {
179
        $this->tag = $tag;
180
181
        return $this;
182
    }
183
184
    /**
185
     * @return null|string
186
     */
187
    public function getColor()
188
    {
189
        return $this->color;
190
    }
191
192
    /**
193
     * @param null|string $color
194
     * @return $this
195
     */
196
    public function setColor($color)
197
    {
198
        $this->color = $color;
199
200
        return $this;
201
    }
202
203
    /**
204
     * @return null|string
205
     */
206
    public function getClickAction()
207
    {
208
        return $this->clickAction;
209
    }
210
211
    /**
212
     * @param null|string $clickAction
213
     * @return $this
214
     */
215
    public function setClickAction($clickAction)
216
    {
217
        $this->clickAction = $clickAction;
218
219
        return $this;
220
    }
221
222
    /**
223
     * @return null|string
224
     */
225
    public function getBodyLocalizationKey()
226
    {
227
        return $this->bodyLocalizationKey;
228
    }
229
230
    /**
231
     * @param null|string $bodyLocalizationKey
232
     * @return $this
233
     */
234
    public function setBodyLocalizationKey($bodyLocalizationKey)
235
    {
236
        $this->bodyLocalizationKey = $bodyLocalizationKey;
237
238
        return $this;
239
    }
240
241
    /**
242
     * @return null|string
243
     */
244
    public function getBodyLocalizationArgs()
245
    {
246
        return $this->bodyLocalizationArgs;
247
    }
248
249
    /**
250
     * @param null|string $bodyLocalizationArgs
251
     * @return $this
252
     */
253
    public function setBodyLocalizationArgs($bodyLocalizationArgs)
254
    {
255
        $this->bodyLocalizationArgs = $bodyLocalizationArgs;
256
257
        return $this;
258
    }
259
260
    /**
261
     * @return null|string
262
     */
263
    public function getTitleLocalizationKey()
264
    {
265
        return $this->titleLocalizationKey;
266
    }
267
268
    /**
269
     * @param null|string $titleLocalizationKey
270
     * @return $this
271
     */
272
    public function setTitleLocalizationKey($titleLocalizationKey)
273
    {
274
        $this->titleLocalizationKey = $titleLocalizationKey;
275
276
        return $this;
277
    }
278
279
    /**
280
     * @return null|string
281
     */
282
    public function getTitleLocalizationArgs()
283
    {
284
        return $this->titleLocalizationArgs;
285
    }
286
287
    /**
288
     * @param null|string $titleLocalizationArgs
289
     * @return $this
290
     */
291
    public function setTitleLocalizationArgs($titleLocalizationArgs)
292
    {
293
        $this->titleLocalizationArgs = $titleLocalizationArgs;
294
295
        return $this;
296
    }
297
}