Navigation | Overlay |
---|---|
t Navigate files | h Toggle hits |
y Change url to tip of branch | m Toggle misses |
b / v Jump to prev/next hit line | p Toggle partial |
z / x Jump to prev/next missed or partial line | 1..9 Toggle flags |
shift + o Open current page in GitHub | a Toggle all on |
/ or ? Show keyboard shortcuts dialog | c Toggle context lines or commits |
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 .