1 | <?php |
||
7 | abstract class AbstractApi |
||
8 | { |
||
9 | /** |
||
10 | * @return string |
||
11 | */ |
||
12 | abstract public function httpMethod(): HttpMethod; |
||
13 | |||
14 | /** |
||
15 | * @return string |
||
16 | */ |
||
17 | abstract public function path(): string; |
||
18 | |||
19 | /** |
||
20 | * @param array $response |
||
21 | * @return array |
||
22 | */ |
||
23 | abstract public function distillResponse(array $response): array; |
||
24 | |||
25 | /** |
||
26 | * @return bool |
||
27 | */ |
||
28 | public function expectsFormFields(): bool |
||
32 | } |
||
33 |