| Total Complexity | 2 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 5 | class RateLimits |
||
| 6 | { |
||
| 7 | public $limit; |
||
| 8 | |||
| 9 | public $remaining; |
||
| 10 | |||
| 11 | public $reset; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Construct instance from headers response. |
||
| 15 | * |
||
| 16 | * @param $headers |
||
| 17 | * @return static |
||
| 18 | */ |
||
| 19 | public static function fromHeaders($headers) |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return int seconds before rate limit reset. |
||
| 31 | */ |
||
| 32 | public function waitTime() |
||
| 37 |