1
<?php
2

3
declare(strict_types=1);
4

5
namespace Kreait\Firebase\Messaging;
6

7
final class RawMessageFromArray implements Message
8
{
9
    /** @var array<mixed> */
10
    private $data;
11

12
    /**
13
     * @param array<mixed> $data
14
     */
15 3
    public function __construct(array $data)
16
    {
17 3
        $this->data = $data;
18
    }
19

20
    /**
21
     * @return array<mixed>
22
     */
23 3
    public function jsonSerialize(): array
24
    {
25 3
        return $this->data;
26
    }
27
}

Read our documentation on viewing source code .

Loading