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\Message\Part\Payload\Data;
use Fresh\FirebaseCloudMessagingBundle\Message\Part\Payload\AndroidPayloadInterface;
use Fresh\FirebaseCloudMessagingBundle\Message\Part\Payload\IosPayloadInterface;
use Fresh\FirebaseCloudMessagingBundle\Message\Part\Payload\WebPayloadInterface;
/**
* DataPayload.
* @author Artem Henvald <[email protected]>
class DataPayload implements AndroidPayloadInterface, IosPayloadInterface, WebPayloadInterface
{
/** @var array */
private $data = [];
* @param array $data
* @return $this
public function setData(array $data): self
$this->data = $data;
return $this;
}
* @return array
public function getData(): array
return $this->data;