| 1 | <?php |
||
| 5 | class LastRequest { |
||
| 6 | /** |
||
| 7 | * Content of response header Total |
||
| 8 | */ |
||
| 9 | public $total = null; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Content of response header X-Ratelimit-Limit |
||
| 13 | */ |
||
| 14 | public $ratelimit_limit = null; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Content of response header X-Ratelimit-Remaining |
||
| 18 | */ |
||
| 19 | public $ratelimit_remaining = null; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Array with links returned on header Link |
||
| 23 | */ |
||
| 24 | public $links = null; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * GuzzleHttp\Message\Request object |
||
| 28 | */ |
||
| 29 | public $request = null; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * GuzzleHttp\Message\Response object |
||
| 33 | */ |
||
| 34 | public $response = null; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Constructor method. |
||
| 38 | */ |
||
| 39 | 12 | public function __construct($request, $response) { |
|
| 48 | |||
| 49 | 12 | private function getLinks($response) { |
|
| 64 | } |