| Total Complexity | 6 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 7 | abstract class EndpointAbstract |
||
| 8 | { |
||
| 9 | |||
| 10 | protected $endpoint; |
||
| 11 | protected $queryParameters = []; |
||
| 12 | protected $headers = []; |
||
| 13 | protected $httpRequestMethod = Client::HTTP_POST; |
||
| 14 | protected $responseRoot = ''; |
||
| 15 | protected $requestHeaderRequired = true; |
||
| 16 | |||
| 17 | public function getEndpoint() : string |
||
| 18 | { |
||
| 19 | return $this->endpoint; |
||
| 20 | } |
||
| 21 | |||
| 22 | public function getHeaders() : array |
||
| 23 | { |
||
| 24 | return $this->headers; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function getQueryParams() : array |
||
| 28 | { |
||
| 29 | return $this->queryParameters; |
||
| 30 | } |
||
| 31 | |||
| 32 | public function getHttpRequestMethod() : string |
||
| 33 | { |
||
| 34 | return $this->httpRequestMethod; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getResponseRoot() : string |
||
| 40 | } |
||
| 41 | |||
| 42 | public function doesRequireRequestHeaders() : bool |
||
| 43 | { |
||
| 45 | } |
||
| 46 | } |
||
| 47 |