1 | <?php |
||
4 | class SendRequest extends AbstractRequest |
||
5 | { |
||
6 | |||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | protected $recipient; |
||
11 | |||
12 | /** |
||
13 | * @var null|string|\Kerox\Messenger\Model\Message |
||
14 | */ |
||
15 | protected $message; |
||
16 | |||
17 | /** |
||
18 | * @var null|string |
||
19 | */ |
||
20 | protected $senderAction; |
||
21 | |||
22 | /** |
||
23 | * @var null|string |
||
24 | */ |
||
25 | protected $notificationType; |
||
26 | |||
27 | /** |
||
28 | * Request constructor. |
||
29 | * |
||
30 | * @param string $pageToken |
||
31 | * @param string $recipient |
||
32 | * @param $message |
||
33 | * @param $senderAction |
||
34 | * @param $notificationType |
||
35 | */ |
||
36 | public function __construct(string $pageToken, string $recipient, $message, $senderAction, $notificationType) |
||
45 | |||
46 | /** |
||
47 | * @return array |
||
48 | */ |
||
49 | protected function buildHeaders(): array |
||
55 | |||
56 | /** |
||
57 | * @return array |
||
58 | */ |
||
59 | protected function buildBody(): array |
||
72 | |||
73 | /** |
||
74 | * @return array |
||
75 | */ |
||
76 | protected function buildQuery(): array |
||
80 | } |
||
81 |