Skip to content

Commit 9cba2a0

Browse files
committed
document the array shape of the content option
1 parent 47745f3 commit 9cba2a0

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

src/Symfony/Component/Notifier/Bridge/Mercure/MercureOptions.php

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,23 @@ final class MercureOptions implements MessageOptionsInterface
2121
private ?array $topics;
2222

2323
/**
24-
* @param string|string[]|null $topics
24+
* @param string|string[]|null $topics
25+
* @param array{
26+
* actions?: array,
27+
* badge?: string,
28+
* body?: string,
29+
* data?: mixed,
30+
* dir?: 'auto'|'ltr'|'rtl',
31+
* icon?: string,
32+
* image?: string,
33+
* lang?: string,
34+
* renotify?: bool,
35+
* requireInteraction?: bool,
36+
* silent?: bool,
37+
* tag?: string,
38+
* timestamp?: int,
39+
* vibrate?: int[],
40+
* }|null $content
2541
*/
2642
public function __construct(
2743
string|array|null $topics = null,
@@ -62,6 +78,9 @@ public function getRetry(): ?int
6278
return $this->retry;
6379
}
6480

81+
/**
82+
* @return array<string, string>|null
83+
*/
6584
public function getContent(): ?array
6685
{
6786
return $this->content;

0 commit comments

Comments
 (0)