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.

Repository   A
last analyzed

Complexity

Total Complexity 10

Size/Duplication

Total Lines 132
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 10
lcom 1
cbo 1
dl 0
loc 132
ccs 20
cts 20
cp 1
rs 10
c 0
b 0
f 0

10 Methods

Rating   Name   Duplication   Size   Complexity  
A id() 0 4 1
A slug() 0 4 1
A description() 0 4 1
A lastBuildId() 0 4 1
A lastBuildNumber() 0 4 1
A lastBuildState() 0 4 1
A lastBuildDuration() 0 4 1
A lastBuildStartedAt() 0 4 1
A lastBuildFinishedAt() 0 4 1
A githubLanguage() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Client\Travis\Resource;
4
5
use ApiClients\Foundation\Hydrator\Annotation\EmptyResource;
6
use ApiClients\Foundation\Resource\AbstractResource;
7
8
/**
9
 * @EmptyResource("EmptyRepository")
10
 */
11
abstract class Repository extends AbstractResource implements RepositoryInterface
12
{
13
    /**
14
     * @var int
15
     */
16
    protected $id;
17
18
    /**
19
     * @var string
20
     */
21
    protected $slug;
22
23
    /**
24
     * @var string
25
     */
26
    protected $description;
27
28
    /**
29
     * @var int
30
     */
31
    protected $last_build_id;
32
33
    /**
34
     * @var int
35
     */
36
    protected $last_build_number;
37
38
    /**
39
     * @var string
40
     */
41
    protected $last_build_state;
42
43
    /**
44
     * @var int
45
     */
46
    protected $last_build_duration;
47
48
    /**
49
     * @var int
50
     */
51
    protected $last_build_started_at;
52
53
    /**
54
     * @var int
55
     */
56
    protected $last_build_finished_at;
57
58
    /**
59
     * @var string
60
     */
61
    protected $github_language;
62
63
    /**
64
     * @return int
65
     */
66 4
    public function id(): int
67
    {
68 4
        return $this->id;
69
    }
70
71
    /**
72
     * @return string
73
     */
74 4
    public function slug(): string
75
    {
76 4
        return $this->slug;
77
    }
78
79
    /**
80
     * @return string
81
     */
82 4
    public function description(): string
83
    {
84 4
        return $this->description;
85
    }
86
87
    /**
88
     * @return int
89
     */
90 4
    public function lastBuildId(): int
91
    {
92 4
        return (int)$this->last_build_id;
93
    }
94
95
    /**
96
     * @return int
97
     */
98 4
    public function lastBuildNumber(): int
99
    {
100 4
        return $this->last_build_number;
101
    }
102
103
    /**
104
     * @return string
105
     */
106 4
    public function lastBuildState(): string
107
    {
108 4
        return $this->last_build_state;
109
    }
110
111
    /**
112
     * @return int
113
     */
114 4
    public function lastBuildDuration(): int
115
    {
116 4
        return $this->last_build_duration;
117
    }
118
119
    /**
120
     * @return int
121
     */
122 4
    public function lastBuildStartedAt(): int
123
    {
124 4
        return $this->last_build_started_at;
125
    }
126
127
    /**
128
     * @return int
129
     */
130 4
    public function lastBuildFinishedAt(): int
131
    {
132 4
        return $this->last_build_finished_at;
133
    }
134
135
    /**
136
     * @return string
137
     */
138 4
    public function githubLanguage(): string
139
    {
140 4
        return $this->github_language;
141
    }
142
}
143