GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#9)
by Cees-Jan
04:24
created

RateLimitState::setRemaining()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Client\Github;
4
5
final class RateLimitState
6
{
7
    /**
8
     * @var int
9
     */
10
    private $limit = 0;
11
12
    /**
13
     * @var int
14
     */
15
    private $remaining = 0;
16
17
    /**
18
     * @var int
19
     */
20
    private $reset = 0;
21
22
    /**
23
     * @return int
24
     */
25 2
    public function getLimit(): int
26
    {
27 2
        return $this->limit;
28
    }
29
30
    /**
31
     * @param int $limit
32
     */
33 2
    public function setLimit(int $limit)
34
    {
35 2
        $this->limit = $limit;
36 2
    }
37
38
    /**
39
     * @return int
40
     */
41 2
    public function getRemaining(): int
42
    {
43 2
        return $this->remaining;
44
    }
45
46
    /**
47
     * @param int $remaining
48
     */
49 2
    public function setRemaining(int $remaining)
50
    {
51 2
        $this->remaining = $remaining;
52 2
    }
53
54
    /**
55
     * @return int
56
     */
57 2
    public function getReset(): int
58
    {
59 2
        return $this->reset;
60
    }
61
62
    /**
63
     * @param int $reset
64
     */
65 2
    public function setReset(int $reset)
66
    {
67 2
        $this->reset = $reset;
68 2
    }
69
}
70