@@ -11,6 +11,9 @@ class WebPushMessage
1111{
1212 protected string $ title ;
1313
14+ /**
15+ * @var array<array-key, array{'title': string, 'action': string, 'icon'?: string}>
16+ */
1417 protected array $ actions = [];
1518
1619 protected string $ badge ;
@@ -31,10 +34,16 @@ class WebPushMessage
3134
3235 protected string $ tag ;
3336
37+ /**
38+ * @var array<int>
39+ */
3440 protected array $ vibrate ;
3541
3642 protected mixed $ data ;
3743
44+ /**
45+ * @var array<string, mixed>
46+ */
3847 protected array $ options = [];
3948
4049 /**
@@ -168,6 +177,7 @@ public function tag(string $value): static
168177 /**
169178 * Set the notification vibration pattern.
170179 *
180+ * @param array<int> $value
171181 * @return $this
172182 */
173183 public function vibrate (array $ value ): static
@@ -194,6 +204,7 @@ public function data(mixed $value): static
194204 *
195205 * @link https://github.com/web-push-libs/web-push-php#notifications-and-default-options
196206 *
207+ * @param array<string, mixed> $value
197208 * @return $this
198209 */
199210 public function options (array $ value ): static
@@ -205,6 +216,8 @@ public function options(array $value): static
205216
206217 /**
207218 * Get the notification options.
219+ *
220+ * @return array<string, mixed>
208221 */
209222 public function getOptions (): array
210223 {
@@ -213,6 +226,8 @@ public function getOptions(): array
213226
214227 /**
215228 * Get an array representation of the message.
229+ *
230+ * @return array<string, mixed>
216231 */
217232 public function toArray (): array
218233 {
0 commit comments