| 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 | * @var string|null |
||
| 24 | */ |
||
| 25 | protected $icon; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return string|null |
||
| 29 | */ |
||
| 30 | public function getTitle(): ?string |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param string|null $title |
||
| 37 | * @return Notification |
||
| 38 | */ |
||
| 39 | public function setTitle(?string $title): self |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return string|null |
||
| 48 | */ |
||
| 49 | public function getBody(): ?string |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @param string|null $body |
||
| 56 | * @return Notification |
||
| 57 | */ |
||
| 58 | public function setBody(?string $body): self |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return string|null |
||
| 67 | */ |
||
| 68 | public function getImage(): ?string |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @param string|null $image |
||
| 75 | * @return Notification |
||
| 76 | */ |
||
| 77 | public function setImage(?string $image): self |
||
| 83 | |||
| 84 | /** |
||
| 85 | * @return string|null |
||
| 86 | */ |
||
| 87 | public function getIcon(): ?string |
||
| 91 | |||
| 92 | /** |
||
| 93 | * @param string|null $icon |
||
| 94 | * @return Notification |
||
| 95 | */ |
||
| 96 | public function setIcon(?string $icon): self |
||
| 102 | |||
| 103 | /** |
||
| 104 | * @return static |
||
| 105 | */ |
||
| 106 | public static function create(): self |
||
| 110 | |||
| 111 | /** |
||
| 112 | * {@inheritdoc} |
||
| 113 | */ |
||
| 114 | public function toArray(): array |
||
| 123 | } |
||
| 124 |