File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments