| 1 | <?php |
||
| 8 | abstract class ManagerBase |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var \GuzzleHttp\ClientInterface The request client |
||
| 12 | */ |
||
| 13 | protected $client; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param \GuzzleHttp\ClientInterface $client The request client |
||
| 17 | */ |
||
| 18 | 96 | public function __construct(ClientInterface $client) |
|
| 22 | |||
| 23 | /** |
||
| 24 | * Make the given Request and return as JSON Decoded PHP object. |
||
| 25 | * |
||
| 26 | * @param \Psr\Http\Message\RequestInterface $request |
||
| 27 | * |
||
| 28 | * @return mixed the value encoded in <i>json</i> in appropriate |
||
| 29 | * PHP type. Values true, false and |
||
| 30 | * null (case-insensitive) are returned as <b>TRUE</b>, <b>FALSE</b> |
||
| 31 | * and <b>NULL</b> respectively. <b>NULL</b> is returned if the |
||
| 32 | * <i>json</i> cannot be decoded or if the encoded |
||
| 33 | * data is deeper than the recursion limit |
||
| 34 | */ |
||
| 35 | 78 | protected function getResponseJson(RequestInterface $request) |
|
| 42 | |||
| 43 | } |
||
| 44 |