10000 document the array shape of the content option · symfony/symfony@9efc702 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9efc702

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

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

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

+32
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,21 @@ final class MercureOptions implements MessageOptionsInterface
2222

2323
/**
2424
* @param string|string[]|null $topics
25+
* @param array{
26+
* badge?: string,
27+
* body?: string,
28+
* data?: mixed,
29+
* dir?: 'auto'|'ltr'|'rtl',
30+
* icon?: string,
31+
* image?: string,
32+
* lang?: string,
33+
* renotify?: bool,
34+
* requireInteraction?: bool,
35+
* silent?: bool,
36+
* tag?: string,
37+
* timestamp?: int,
38+
* vibrate?: int|list<int>,
39+
* }|null $content
2540
*/
2641
public function __construct(
2742
string|array|null $topics = null,
@@ -62,6 +77,23 @@ public function getRetry(): ?int
6277
return $this->retry;
6378
}
6479

80+
/**
81+
* @return array{
82+
* badge?: string,
83+
* body?: string,
84+
* data?: mixed,
85+
* dir?: 'auto'|'ltr'|'rtl',
86+
* icon?: string,
87+
* image?: string,
88+
* lang?: string,
89+
* renotify?: bool,
90+
* requireInteraction?: bool,
91+
* silent?: bool,
92+
* tag?: string,
93+
* timestamp?: int,
94+
* vibrate?: int|list<int>,
95+
* }|null
96+
*/
6597
public function getContent(): ?array
6698
{
6799
return $this->content;

0 commit comments

Comments
 (0)
0