-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathRateLimitState.php
More file actions
69 lines (59 loc) · 1019 Bytes
/
RateLimitState.php
File metadata and controls
69 lines (59 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php declare(strict_types=1);
namespace ApiClients\Client\Github;
final class RateLimitState
{
/**
* @var int
*/
private $limit = 0;
/**
* @var int
*/
private $remaining = 0;
/**
* @var int
*/
private $reset = 0;
/**
* @return int
*/
public function getLimit(): int
{
return $this->limit;
}
/**
* @param int $limit
*/
public function setLimit(int $limit)
{
$this->limit = $limit;
}
/**
* @return int
*/
public function getRemaining(): int
{
return $this->remaining;
}
/**
* @param int $remaining
*/
public function setRemaining(int $remaining)
{
$this->remaining = $remaining;
}
/**
* @return int
*/
public function getReset(): int
{
return $this->reset;
}
/**
* @param int $reset
*/
public function setReset(int $reset)
{
$this->reset = $reset;
}
}