1 | <?php |
||
10 | class OptionsBuilder |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * @var null|string |
||
15 | */ |
||
16 | protected $collapseKey; |
||
17 | |||
18 | /** |
||
19 | * @var null|string |
||
20 | */ |
||
21 | protected $priority; |
||
22 | |||
23 | /** |
||
24 | * @var bool |
||
25 | */ |
||
26 | protected $contentAvailable = false; |
||
27 | |||
28 | /** |
||
29 | * @var null|int |
||
30 | */ |
||
31 | protected $timeToLive; |
||
32 | |||
33 | /** |
||
34 | * @var null|string |
||
35 | */ |
||
36 | protected $restrictedPackageName; |
||
37 | |||
38 | /** |
||
39 | * @var bool |
||
40 | */ |
||
41 | protected $dryRun = false; |
||
42 | |||
43 | /** |
||
44 | * @return string |
||
45 | */ |
||
46 | public function getCollapseKey() |
||
50 | |||
51 | /** |
||
52 | * @param string $collapseKey |
||
53 | * @return $this |
||
54 | * @throws \ker0x\Push\Adapter\Fcm\Message\Exception\InvalidOptionsException |
||
55 | */ |
||
56 | public function setCollapseKey($collapseKey) |
||
65 | |||
66 | /** |
||
67 | * @return string |
||
68 | */ |
||
69 | public function getPriority() |
||
73 | |||
74 | /** |
||
75 | * @param string $priority |
||
76 | * @return $this |
||
77 | */ |
||
78 | public function setPriority($priority) |
||
84 | |||
85 | /** |
||
86 | * @return boolean |
||
87 | */ |
||
88 | public function isContentAvailable() |
||
92 | |||
93 | /** |
||
94 | * @param boolean $contentAvailable |
||
95 | * @return $this |
||
96 | * @throws \ker0x\Push\Adapter\Fcm\Message\Exception\InvalidOptionsException |
||
97 | */ |
||
98 | public function setContentAvailable($contentAvailable) |
||
107 | |||
108 | /** |
||
109 | * @return string |
||
110 | */ |
||
111 | public function getTimeToLive() |
||
115 | |||
116 | /** |
||
117 | * @param int $timeToLive |
||
118 | * @return $this |
||
119 | * @throws \ker0x\Push\Adapter\Fcm\Message\Exception\InvalidOptionsException |
||
120 | */ |
||
121 | public function setTimeToLive($timeToLive) |
||
130 | |||
131 | /** |
||
132 | * @return string |
||
133 | */ |
||
134 | public function getRestrictedPackageName() |
||
138 | |||
139 | /** |
||
140 | * @param string $restrictedPackageName |
||
141 | * @return $this |
||
142 | * @throws \ker0x\Push\Adapter\Fcm\Message\Exception\InvalidOptionsException |
||
143 | */ |
||
144 | public function setRestrictedPackageName($restrictedPackageName) |
||
153 | |||
154 | /** |
||
155 | * @return boolean |
||
156 | */ |
||
157 | public function isDryRun() |
||
161 | |||
162 | /** |
||
163 | * @param boolean $dryRun |
||
164 | * @return $this |
||
165 | * @throws \ker0x\Push\Adapter\Fcm\Message\Exception\InvalidOptionsException |
||
166 | */ |
||
167 | public function setDryRun($dryRun) |
||
176 | } |
||
177 |