/
AndroidNotification.php
96 lines (73 loc) · 1.91 KB
/
AndroidNotification.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Notifier\Bridge\Firebase\Notification;
use Symfony\Component\Notifier\Bridge\Firebase\FirebaseOptions;
/**
* @experimental in 5.1
*/
final class AndroidNotification extends FirebaseOptions
{
public function channelId(string $channelId): self
{
$this->options['android_channel_id'] = $channelId;
return $this;
}
public function icon(string $icon): self
{
$this->options['icon'] = $icon;
return $this;
}
public function sound(string $sound): self
{
$this->options['sound'] = $sound;
return $this;
}
public function tag(string $tag): self
{
$this->options['tag'] = $tag;
return $this;
}
public function color(string $color): self
{
$this->options['color'] = $color;
return $this;
}
public function clickAction(string $clickAction): self
{
$this->options['click_action'] = $clickAction;
return $this;
}
public function bodyLocKey(string $bodyLocKey): self
{
$this->options['body_loc_key'] = $bodyLocKey;
return $this;
}
/**
* @param string[] $bodyLocArgs
*/
public function bodyLocArgs(array $bodyLocArgs): self
{
$this->options['body_loc_args'] = $bodyLocArgs;
return $this;
}
public function titleLocKey(string $titleLocKey): self
{
$this->options['title_loc_key'] = $titleLocKey;
return $this;
}
/**
* @param string[] $titleLocArgs
*/
public function titleLocArgs(array $titleLocArgs): self
{
$this->options['title_loc_args'] = $titleLocArgs;
return $this;
}
}