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 (#8)
by Cees-Jan
03:15
created

CombinedStatus   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 67
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 60%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 1
dl 0
loc 67
ccs 6
cts 10
cp 0.6
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A state() 0 4 1
A sha() 0 4 1
A totalCount() 0 4 1
A statuses() 0 4 1
A repository() 0 4 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