1 | <?php |
||
5 | class Payload |
||
6 | { |
||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | private $title; |
||
11 | |||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $body; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $deepLink; |
||
21 | |||
22 | /** |
||
23 | * Construct. |
||
24 | * |
||
25 | * @param string $title |
||
26 | * @param string $body |
||
27 | * @param string $deepLink |
||
28 | */ |
||
29 | public function __construct($title, $body, $deepLink = null) |
||
35 | |||
36 | /** |
||
37 | * Gets payload array structure. |
||
38 | * |
||
39 | * @return array $payload |
||
40 | */ |
||
41 | public function getPayload() |
||
55 | } |
||
56 |