Total Complexity | 8 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | abstract class AbstractApiMethod implements MethodInterface |
||
9 | { |
||
10 | public function getHeaders() |
||
13 | } |
||
14 | |||
15 | public function getQueryParameters() |
||
16 | { |
||
17 | return []; |
||
18 | } |
||
19 | |||
20 | public function getHttpMethod() |
||
21 | { |
||
22 | return 'GET'; |
||
23 | } |
||
24 | |||
25 | public function getScheme() |
||
26 | { |
||
27 | return 'https'; |
||
28 | } |
||
29 | |||
30 | abstract public function getHost(); |
||
31 | |||
32 | |||
33 | abstract public function getMethodUrl(); |
||
34 | |||
35 | public function processResponse(ResponseInterface $response) |
||
38 | } |
||
39 | |||
40 | public function handleException(\Throwable $exception) |
||
43 | } |
||
44 | |||
45 | public function getBody() |
||
46 | { |
||
48 | } |
||
49 | |||
50 | public function getOptions() |
||
56 | } |