1 | <?php |
||
5 | class Notification implements FcmResource |
||
6 | { |
||
7 | /** |
||
8 | * @var string|null |
||
9 | */ |
||
10 | protected $title; |
||
11 | |||
12 | /** |
||
13 | * @var string|null |
||
14 | */ |
||
15 | protected $body; |
||
16 | |||
17 | /** |
||
18 | * @var string|null |
||
19 | */ |
||
20 | protected $image; |
||
21 | |||
22 | /** |
||
23 | * @return string|null |
||
24 | */ |
||
25 | public function getTitle(): ?string |
||
29 | |||
30 | /** |
||
31 | * @param string|null $title |
||
32 | * @return Notification |
||
33 | */ |
||
34 | public function setTitle(?string $title): self |
||
40 | |||
41 | /** |
||
42 | * @return string|null |
||
43 | */ |
||
44 | public function getBody(): ?string |
||
48 | |||
49 | /** |
||
50 | * @param string|null $body |
||
51 | * @return Notification |
||
52 | */ |
||
53 | public function setBody(?string $body): self |
||
59 | |||
60 | /** |
||
61 | * @return string|null |
||
62 | */ |
||
63 | public function getImage(): ?string |
||
67 | |||
68 | /** |
||
69 | * @param string|null $image |
||
70 | * @return Notification |
||
71 | */ |
||
72 | public function setImage(?string $image): self |
||
78 | |||
79 | /** |
||
80 | * @return static |
||
81 | */ |
||
82 | public static function create(): self |
||
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | public function toArray(): array |
||
98 | } |
||
99 |