Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
39 | 1 | public function __construct($request, $response) { |
|
40 | 1 | $this->request = $request; |
|
41 | 1 | $this->response = $response; |
|
42 | |||
43 | 1 | $this->total = $response->getHeader('Total'); |
|
44 | 1 | $this->ratelimit_limit = $response->getHeader('X-Ratelimit-Limit'); |
|
45 | 1 | $this->ratelimit_remaining = $response->getHeader('X-Ratelimit-Remaining'); |
|
46 | 1 | $this->links = $this->getLinks($response); |
|
47 | 1 | } |
|
48 | |||
64 | } |