Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b9721f

Browse files
committed
document the array shape of the content option
1 parent 47745f3 commit 2b9721f

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

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

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,22 @@ final class MercureOptions implements MessageOptionsInterface
2222

2323
/**
2424
* @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,24 @@ public function getRetry(): ?int
6278
return $this->retry;
6379
}
6480

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

0 commit comments

Comments
 (0)