File tree 2 files changed +27
-1
lines changed
2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,26 @@ public static function make(string $text = null): static
24
24
{
25
25
$ data = [];
26
26
27
- if ($ text !== null ) {
27
+ if ($ text !== null ) {
28
28
$ data ['text ' ] = $ text ;
29
29
}
30
30
31
31
return new static ($ data );
32
32
}
33
33
34
+ public function webApp (array |string $ web_app ): self
35
+ {
36
+ if (is_string ($ web_app )) {
37
+ $ web_app = [
38
+ 'url ' => $ web_app ,
39
+ ];
40
+ }
41
+
42
+ $ this ->data ['web_app ' ] = $ web_app ;
43
+
44
+ return $ this ;
45
+ }
46
+
34
47
public function loginUrl (array |string $ login_url ): self
35
48
{
36
49
if (is_string ($ login_url )) {
Original file line number Diff line number Diff line change @@ -29,4 +29,17 @@ public static function make(string $text = null): static
29
29
30
30
return new static ($ data );
31
31
}
32
+
33
+ public function webApp (array |string $ web_app ): self
34
+ {
35
+ if (is_string ($ web_app )) {
36
+ $ web_app = [
37
+ 'url ' => $ web_app ,
38
+ ];
39
+ }
40
+
41
+ $ this ->data ['web_app ' ] = $ web_app ;
42
+
43
+ return $ this ;
44
+ }
32
45
}
You can’t perform that action at this time.
0 commit comments