Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9efc702

Browse filesBrowse files
committed
document the array shape of the content option
1 parent 47745f3 commit 9efc702
Copy full SHA for 9efc702

File tree

1 file changed

+32
-0
lines changed
Filter options

1 file changed

+32
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Bridge/Mercure/MercureOptions.php
+32Lines changed: 32 additions & 0 deletions
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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.