File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 66
77class ExpoMessage
88{
9+ /**
10+ * The message title.
11+ *
12+ * @var string
13+ */
14+ protected $ title ;
15+
916 /**
1017 * The message body.
1118 *
@@ -71,6 +78,20 @@ public function __construct(string $body = '')
7178 $ this ->body = $ body ;
7279 }
7380
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+
7495 /**
7596 * Set the message body.
7697 *
@@ -185,6 +206,7 @@ public function setJsonData($data)
185206 public function toArray ()
186207 {
187208 return [
209+ 'title ' => $ this ->title ,
188210 'body ' => $ this ->body ,
189211 'sound ' => $ this ->sound ,
190212 'badge ' => $ this ->badge ,
You can’t perform that action at this time.
0 commit comments