1 | <?php |
||
4 | abstract class AbstractRequest |
||
5 | { |
||
6 | |||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | protected $pageToken; |
||
11 | |||
12 | /** |
||
13 | * AbstractRequest constructor. |
||
14 | * |
||
15 | * @param string $pageToken |
||
16 | */ |
||
17 | public function __construct(string $pageToken) |
||
21 | |||
22 | /** |
||
23 | * @return mixed |
||
24 | */ |
||
25 | abstract protected function buildHeaders(); |
||
26 | |||
27 | /** |
||
28 | * @return mixed |
||
29 | */ |
||
30 | abstract protected function buildBody(); |
||
31 | |||
32 | /** |
||
33 | * @return mixed |
||
34 | */ |
||
35 | protected function buildQuery(): array |
||
41 | |||
42 | /** |
||
43 | * @return array |
||
44 | */ |
||
45 | public function build(): array |
||
55 | } |
||
56 |