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   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 65
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 65
ccs 15
cts 15
cp 1
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getLimit() 0 4 1
A setLimit() 0 4 1
A getRemaining() 0 4 1
A setRemaining() 0 4 1
A getReset() 0 4 1
A setReset() 0 4 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