1 | <?php |
||
9 | class RequestHandler |
||
10 | { |
||
11 | private $accessToken; |
||
12 | private $apiUrl; |
||
13 | private $client; |
||
14 | |||
15 | public function __construct(string $accessToken = null, string $apiUrl = null) |
||
21 | |||
22 | public function getAccessToken(): string |
||
26 | |||
27 | public function setAccessToken(string $accessToken) |
||
31 | |||
32 | public function getApiUrl(): string |
||
36 | |||
37 | public function setApiUrl(string $apiUrl) |
||
42 | |||
43 | private function handleException(ResponseInterface $response) |
||
47 | |||
48 | public function get(string $endpoint, array $headers = [], array $params = null) |
||
52 | |||
53 | public function post(string $endpoint, array $params = null, array $headers = []): array |
||
67 | } |
||
68 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.