| @@ 121-131 (lines=11) @@ | ||
| 118 | /** | |
| 119 |      * {@inheritdoc} | |
| 120 | */ | |
| 121 | public function getLatestResponseHeaders() | |
| 122 |     { | |
| 123 |         if (null === $this->response) { | |
| 124 | return; | |
| 125 | } | |
| 126 | return [ | |
| 127 |             'reset' => (int) (string) $this->response->getHeader('RateLimit-Reset'), | |
| 128 |             'remaining' => (int) (string) $this->response->getHeader('RateLimit-Remaining'), | |
| 129 |             'limit' => (int) (string) $this->response->getHeader('RateLimit-Limit'), | |
| 130 | ]; | |
| 131 | } | |
| 132 | ||
| 133 | /** | |
| 134 | * @throws HttpException | |
| @@ 122-132 (lines=11) @@ | ||
| 119 | /** | |
| 120 |      * {@inheritdoc} | |
| 121 | */ | |
| 122 | public function getLatestResponseHeaders() | |
| 123 |     { | |
| 124 |         if (null === $this->response) { | |
| 125 | return; | |
| 126 | } | |
| 127 | return [ | |
| 128 |             'reset' => (int) (string) $this->response->getHeader('RateLimit-Reset'), | |
| 129 |             'remaining' => (int) (string) $this->response->getHeader('RateLimit-Remaining'), | |
| 130 |             'limit' => (int) (string) $this->response->getHeader('RateLimit-Limit'), | |
| 131 | ]; | |
| 132 | } | |
| 133 | ||
| 134 | /** | |
| 135 | * @throws HttpException | |