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
Push — master ( c221d0...e8acb2 )
by Cees-Jan
10s
created

CombinedStatus::state()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Client\Github\Resource\Repository\Commit;
4
5
use ApiClients\Foundation\Hydrator\Annotations\Collection;
6
use ApiClients\Foundation\Hydrator\Annotations\EmptyResource;
7
use ApiClients\Foundation\Hydrator\Annotations\Nested;
8
use ApiClients\Foundation\Resource\AbstractResource;
9
10
/**
11
 * @Collection(
12
 *     statuses="Repository\Commit\Status"
13
 * )
14
 * @Nested(
15
 *     repository="Repository"
16
 * )
17
 * @EmptyResource("Repository\Commit\EmptyCombinedStatus")
18
 */
19
abstract class CombinedStatus extends AbstractResource implements CombinedStatusInterface
20
{
21
    /**
22
     * @var string
23
     */
24
    protected $state;
25
26
    /**
27
     * @var string
28
     */
29
    protected $sha;
30
31
    /**
32
     * @var int
33
     */
34
    protected $total_count;
35
36
    /**
37
     * @var Repository\Commit\Status
38
     */
39
    protected $statuses;
40
41
    /**
42
     * @var Repository
43
     */
44
    protected $repository;
45
46
    /**
47
     * @return string
48
     */
49 4
    public function state() : string
50
    {
51 4
        return $this->state;
52
    }
53
54
    /**
55
     * @return string
56
     */
57 4
    public function sha() : string
58
    {
59 4
        return $this->sha;
60
    }
61
62
    /**
63
     * @return int
64
     */
65 4
    public function totalCount() : int
66
    {
67 4
        return $this->total_count;
68
    }
69
70
    /**
71
     * @return Repository\Commit\Status
72
     */
73
    public function statuses() : Repository\Commit\Status
74
    {
75
        return $this->statuses;
76
    }
77
78
    /**
79
     * @return Repository
80
     */
81
    public function repository() : Repository
82
    {
83
        return $this->repository;
84
    }
85
}
86