| 1 | <?php |
||
| 22 | class IosNotificationPayload extends AbstractMobileNotificationPayload implements IosPayloadInterface |
||
| 23 | { |
||
| 24 | private ?string $badge = null; |
||
|
|
|||
| 25 | |||
| 26 | /** |
||
| 27 | * @param string $badge |
||
| 28 | * |
||
| 29 | * @return $this |
||
| 30 | */ |
||
| 31 | public function setBadge(string $badge): self |
||
| 32 | { |
||
| 33 | $this->badge = $badge; |
||
| 34 | |||
| 35 | return $this; |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return string|null |
||
| 40 | */ |
||
| 41 | public function getBadge(): ?string |
||
| 42 | { |
||
| 43 | return $this->badge; |
||
| 44 | } |
||
| 45 | } |
||
| 46 |