1 | <?php |
||
8 | abstract class ManagerBase |
||
9 | { |
||
10 | /** |
||
11 | * @var array A list of query parameters that the URL could possibly have |
||
12 | */ |
||
13 | protected $queryParameters = []; |
||
14 | |||
15 | /** |
||
16 | * @var \GuzzleHttp\ClientInterface The request client |
||
17 | */ |
||
18 | protected $client; |
||
19 | |||
20 | /** |
||
21 | * @param \GuzzleHttp\ClientInterface $client The request client |
||
22 | */ |
||
23 | 114 | public function __construct(ClientInterface $client) |
|
27 | |||
28 | /** |
||
29 | * Get the client. |
||
30 | * |
||
31 | * @return \GuzzleHttp\ClientInterface The request client |
||
32 | */ |
||
33 | 18 | public function getClient() { |
|
36 | |||
37 | /** |
||
38 | * Make the given Request and return as JSON Decoded PHP object. |
||
39 | * |
||
40 | * @param \Psr\Http\Message\RequestInterface $request |
||
41 | * |
||
42 | * @return mixed the value encoded in <i>json</i> in appropriate |
||
43 | * PHP type. Values true, false and |
||
44 | * null (case-insensitive) are returned as <b>TRUE</b>, <b>FALSE</b> |
||
45 | * and <b>NULL</b> respectively. <b>NULL</b> is returned if the |
||
46 | * <i>json</i> cannot be decoded or if the encoded |
||
47 | * data is deeper than the recursion limit |
||
48 | */ |
||
49 | 78 | protected function getResponseJson(RequestInterface $request) |
|
56 | |||
57 | /** |
||
58 | * Get query string of using the options. |
||
59 | * |
||
60 | * @param $options The options |
||
61 | * @return string The query string |
||
62 | */ |
||
63 | 18 | protected function getQueryString($options) { |
|
80 | |||
81 | } |
||
82 |