1 | <?php |
||
24 | class TopicMessageResponseEvent extends Event |
||
25 | { |
||
26 | /** |
||
27 | * The topic message ID when FCM has successfully received the request |
||
28 | * and will attempt to deliver to all subscribed devices. |
||
29 | * |
||
30 | * @var int |
||
31 | */ |
||
32 | private $messageId; |
||
33 | |||
34 | /** |
||
35 | * Error that occurred when processing the message. |
||
36 | * |
||
37 | * @var string |
||
38 | */ |
||
39 | private $error; |
||
40 | |||
41 | /** |
||
42 | * @param int $messageId |
||
43 | * @param string $error |
||
44 | */ |
||
45 | public function __construct(int $messageId, string $error) |
||
50 | |||
51 | /** |
||
52 | * @return int |
||
53 | */ |
||
54 | public function getMessageId(): int |
||
58 | |||
59 | /** |
||
60 | * @return string |
||
61 | */ |
||
62 | public function getError(): string |
||
66 | } |
||
67 |