File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ class Notification extends Message
1313 private $ sound ;
1414 private $ clickAction ;
1515 private $ tag ;
16+ private $ content_available ;
1617
1718 public function __construct ($ title = '' , $ body = '' )
1819 {
@@ -77,6 +78,12 @@ public function setTag($tag)
7778 return $ this ;
7879 }
7980
81+ public function setContentAvailable ($ content_available )
82+ {
83+ $ this ->content_available = $ content_available ;
84+ return $ this ;
85+ }
86+
8087 public function jsonSerialize ()
8188 {
8289 $ jsonData = $ this ->getJsonData ();
@@ -101,6 +108,9 @@ public function jsonSerialize()
101108 if ($ this ->tag ) {
102109 $ jsonData ['tag ' ] = $ this ->tag ;
103110 }
111+ if ($ this ->content_available ) {
112+ $ jsonData ['content_available ' ] = $ this ->content_available ;
113+ }
104114 return $ jsonData ;
105115 }
106- }
116+ }
You can’t perform that action at this time.
0 commit comments