We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba9dd51 commit 0b10ecaCopy full SHA for 0b10eca
src/ExpoMessage.php
@@ -6,6 +6,13 @@
6
7
class ExpoMessage
8
{
9
+ /**
10
+ * The message title.
11
+ *
12
+ * @var string
13
+ */
14
+ protected $title;
15
+
16
/**
17
* The message body.
18
*
@@ -71,6 +78,20 @@ public function __construct(string $body = '')
71
78
$this->body = $body;
72
79
}
73
80
81
82
+ * Set the message title.
83
84
+ * @param string $value
85
86
+ * @return $this
87
88
+ public function title(string $value)
89
+ {
90
+ $this->title = $value;
91
92
+ return $this;
93
+ }
94
74
95
75
96
* Set the message body.
76
97
@@ -185,6 +206,7 @@ public function setJsonData($data)
185
206
public function toArray()
186
207
187
208
return [
209
+ 'title' => $this-
188
210
'body' => $this->body,
189
211
'sound' => $this->sound,
190
212
'badge' => $this->badge,
0 commit comments