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