for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the FirebaseCloudMessagingBundle.
*
* (c) Artem Henvald <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Fresh\FirebaseCloudMessagingBundle\Event;
use Symfony\Contracts\EventDispatcher\Event;
/**
* TopicMessageResponseEvent.
* @see https://firebase.google.com/docs/cloud-messaging/http-server-ref#table6
* @author Artem Henvald <[email protected]>
class TopicMessageResponseEvent extends Event
{
* The topic message ID when FCM has successfully received the request
* and will attempt to deliver to all subscribed devices.
* @var int
private $messageId;
* Error that occurred when processing the message.
* @var string
private $error;
* @param int $messageId
* @param string $error
public function __construct(int $messageId, string $error)
$this->messageId = $messageId;
$this->error = $error;
}
* @return int
public function getMessageId(): int
return $this->messageId;
* @return string
public function getError(): string
return $this->error;