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 ( 4f765f...c28567 )
by Cees-Jan
13s
created

Job::started()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Client\AppVeyor\Resource;
4
5
use ApiClients\Foundation\Hydrator\Annotation\EmptyResource;
6
use ApiClients\Foundation\Resource\AbstractResource;
7
use DateTimeInterface;
8
9
/**
10
 * @EmptyResource("EmptyJob")
11
 */
12
abstract class Job extends AbstractResource implements JobInterface
13
{
14
    /**
15
     * @var int
16
     */
17
    protected $jobId;
18
19
    /**
20
     * @var string
21
     */
22
    protected $name;
23
24
    /**
25
     * @var bool
26
     */
27
    protected $allowFailure;
28
29
    /**
30
     * @var int
31
     */
32
    protected $messagesCount;
33
34
    /**
35
     * @var int
36
     */
37
    protected $compilationMessagesCount;
38
39
    /**
40
     * @var int
41
     */
42
    protected $compilationErrorsCount;
43
44
    /**
45
     * @var int
46
     */
47
    protected $compilationWarningsCount;
48
49
    /**
50
     * @var int
51
     */
52
    protected $testsCount;
53
54
    /**
55
     * @var int
56
     */
57
    protected $passedTestsCount;
58
59
    /**
60
     * @var int
61
     */
62
    protected $failedTestsCount;
63
64
    /**
65
     * @var int
66
     */
67
    protected $artifactsCount;
68
69
    /**
70
     * @var string
71
     */
72
    protected $status;
73
74
    /**
75
     * @var DateTimeInterface
76
     */
77
    protected $started;
78
79
    /**
80
     * @var DateTimeInterface
81
     */
82
    protected $finished;
83
84
    /**
85
     * @var DateTimeInterface
86
     */
87
    protected $created;
88
89
    /**
90
     * @var DateTimeInterface
91
     */
92
    protected $updated;
93
94
    /**
95
     * @return int
96
     */
97 4
    public function jobId(): int
98
    {
99 4
        return $this->jobId;
100
    }
101
102
    /**
103
     * @return string
104
     */
105 4
    public function name(): string
106
    {
107 4
        return $this->name;
108
    }
109
110
    /**
111
     * @return bool
112
     */
113 4
    public function allowFailure(): bool
114
    {
115 4
        return $this->allowFailure;
116
    }
117
118
    /**
119
     * @return int
120
     */
121 4
    public function messagesCount(): int
122
    {
123 4
        return $this->messagesCount;
124
    }
125
126
    /**
127
     * @return int
128
     */
129 4
    public function compilationMessagesCount(): int
130
    {
131 4
        return $this->compilationMessagesCount;
132
    }
133
134
    /**
135
     * @return int
136
     */
137 4
    public function compilationErrorsCount(): int
138
    {
139 4
        return $this->compilationErrorsCount;
140
    }
141
142
    /**
143
     * @return int
144
     */
145 4
    public function compilationWarningsCount(): int
146
    {
147 4
        return $this->compilationWarningsCount;
148
    }
149
150
    /**
151
     * @return int
152
     */
153 4
    public function testsCount(): int
154
    {
155 4
        return $this->testsCount;
156
    }
157
158
    /**
159
     * @return int
160
     */
161 4
    public function passedTestsCount(): int
162
    {
163 4
        return $this->passedTestsCount;
164
    }
165
166
    /**
167
     * @return int
168
     */
169 4
    public function failedTestsCount(): int
170
    {
171 4
        return $this->failedTestsCount;
172
    }
173
174
    /**
175
     * @return int
176
     */
177 4
    public function artifactsCount(): int
178
    {
179 4
        return $this->artifactsCount;
180
    }
181
182
    /**
183
     * @return string
184
     */
185 4
    public function status(): string
186
    {
187 4
        return $this->status;
188
    }
189
190
    /**
191
     * @return DateTimeInterface
192
     */
193
    public function started(): DateTimeInterface
194
    {
195
        return $this->started;
196
    }
197
198
    /**
199
     * @return DateTimeInterface
200
     */
201
    public function finished(): DateTimeInterface
202
    {
203
        return $this->finished;
204
    }
205
206
    /**
207
     * @return DateTimeInterface
208
     */
209
    public function created(): DateTimeInterface
210
    {
211
        return $this->created;
212
    }
213
214
    /**
215
     * @return DateTimeInterface
216
     */
217
    public function updated(): DateTimeInterface
218
    {
219
        return $this->updated;
220
    }
221
}
222