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 (#10)
by Cees-Jan
05:37
created

Repository::license()   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
c 0
b 0
f 0
rs 10
ccs 0
cts 2
cp 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Client\Github\Resource;
4
5
use ApiClients\Foundation\Hydrator\Annotations\EmptyResource;
6
use ApiClients\Foundation\Hydrator\Annotations\Nested;
7
use ApiClients\Foundation\Resource\AbstractResource;
8
use DateTimeInterface;
9
10
/**
11
 * @Nested(
12
 *     owner="User",
13
 *     license="License"
14
 * )
15
 * @EmptyResource("EmptyRepository")
16
 */
17
abstract class Repository extends AbstractResource implements RepositoryInterface
18
{
19
    /**
20
     * @var int
21
     */
22
    protected $id;
23
24
    /**
25
     * @var string
26
     */
27
    protected $name;
28
29
    /**
30
     * @var string
31
     */
32
    protected $full_name;
33
34
    /**
35
     * @var string
36
     */
37
    protected $url;
38
39
    /**
40
     * @var string
41
     */
42
    protected $description;
43
44
    /**
45
     * @var bool
46
     */
47
    protected $private;
48
49
    /**
50
     * @var bool
51
     */
52
    protected $fork;
53
54
    /**
55
     * @var string
56
     */
57
    protected $homepage;
58
59
    /**
60
     * @var string
61
     */
62
    protected $language;
63
64
    /**
65
     * @var int
66
     */
67
    protected $forks_count;
68
69
    /**
70
     * @var int
71
     */
72
    protected $stargazers_count;
73
74
    /**
75
     * @var int
76
     */
77
    protected $watchers_count;
78
79
    /**
80
     * @var int
81
     */
82
    protected $size;
83
84
    /**
85
     * @var string
86
     */
87
    protected $default_branch;
88
89
    /**
90
     * @var int
91
     */
92
    protected $open_issues_count;
93
94
    /**
95
     * @var bool
96
     */
97
    protected $has_issues;
98
99
    /**
100
     * @var bool
101
     */
102
    protected $has_wiki;
103
104
    /**
105
     * @var bool
106
     */
107
    protected $has_pages;
108
109
    /**
110
     * @var bool
111
     */
112
    protected $has_downloads;
113
114
    /**
115
     * @var DateTimeInterface
116
     */
117
    protected $pushed_at;
118
119
    /**
120
     * @var DateTimeInterface
121
     */
122
    protected $created_at;
123
124
    /**
125
     * @var DateTimeInterface
126
     */
127
    protected $updated_at;
128
129
    /**
130
     * @var array
131
     */
132
    protected $permissions;
133
134
    /**
135
     * @var string
136
     */
137
    protected $html_url;
138
139
    /**
140
     * @var User
141
     */
142
    protected $owner;
143
144
    /**
145
     * @var License
146
     */
147
    protected $license;
148
149
    /**
150
     * @var array
151
     */
152
    protected $topics;
153
154
    /**
155
     * @return int
156
     */
157 4
    public function id() : int
158
    {
159 4
        return $this->id;
160
    }
161
162
    /**
163
     * @return string
164
     */
165 4
    public function name() : string
166
    {
167 4
        return $this->name;
168
    }
169
170
    /**
171
     * @return string
172
     */
173 4
    public function fullName() : string
174
    {
175 4
        return $this->full_name;
176
    }
177
178
    /**
179
     * @return string
180
     */
181 4
    public function url() : string
182
    {
183 4
        return $this->url;
184
    }
185
186
    /**
187
     * @return string
188
     */
189 4
    public function description() : string
190
    {
191 4
        return $this->description;
192
    }
193
194
    /**
195
     * @return bool
196
     */
197 4
    public function private() : bool
198
    {
199 4
        return $this->private;
200
    }
201
202
    /**
203
     * @return bool
204
     */
205 4
    public function fork() : bool
206
    {
207 4
        return $this->fork;
208
    }
209
210
    /**
211
     * @return string
212
     */
213 4
    public function homepage() : string
214
    {
215 4
        return $this->homepage;
216
    }
217
218
    /**
219
     * @return string
220
     */
221 4
    public function language() : string
222
    {
223 4
        return $this->language;
224
    }
225
226
    /**
227
     * @return int
228
     */
229 4
    public function forksCount() : int
230
    {
231 4
        return $this->forks_count;
232
    }
233
234
    /**
235
     * @return int
236
     */
237 4
    public function stargazersCount() : int
238
    {
239 4
        return $this->stargazers_count;
240
    }
241
242
    /**
243
     * @return int
244
     */
245 4
    public function watchersCount() : int
246
    {
247 4
        return $this->watchers_count;
248
    }
249
250
    /**
251
     * @return int
252
     */
253 4
    public function size() : int
254
    {
255 4
        return $this->size;
256
    }
257
258
    /**
259
     * @return string
260
     */
261 4
    public function defaultBranch() : string
262
    {
263 4
        return $this->default_branch;
264
    }
265
266
    /**
267
     * @return int
268
     */
269 4
    public function openIssuesCount() : int
270
    {
271 4
        return $this->open_issues_count;
272
    }
273
274
    /**
275
     * @return bool
276
     */
277 4
    public function hasIssues() : bool
278
    {
279 4
        return $this->has_issues;
280
    }
281
282
    /**
283
     * @return bool
284
     */
285 4
    public function hasWiki() : bool
286
    {
287 4
        return $this->has_wiki;
288
    }
289
290
    /**
291
     * @return bool
292
     */
293 4
    public function hasPages() : bool
294
    {
295 4
        return $this->has_pages;
296
    }
297
298
    /**
299
     * @return bool
300
     */
301 4
    public function hasDownloads() : bool
302
    {
303 4
        return $this->has_downloads;
304
    }
305
306
    /**
307
     * @return DateTimeInterface
308
     */
309
    public function pushedAt() : DateTimeInterface
310
    {
311
        return $this->pushed_at;
312
    }
313
314
    /**
315
     * @return DateTimeInterface
316
     */
317
    public function createdAt() : DateTimeInterface
318
    {
319
        return $this->created_at;
320
    }
321
322
    /**
323
     * @return DateTimeInterface
324
     */
325
    public function updatedAt() : DateTimeInterface
326
    {
327
        return $this->updated_at;
328
    }
329
330
    /**
331
     * @return array
332
     */
333
    public function permissions() : array
334
    {
335
        return $this->permissions;
336
    }
337
338
    /**
339
     * @return string
340
     */
341 4
    public function htmlUrl() : string
342
    {
343 4
        return $this->html_url;
344
    }
345
346
    /**
347
     * @return User
348
     */
349
    public function owner() : User
350
    {
351
        return $this->owner;
352
    }
353
354
    /**
355
     * @return License
356
     */
357
    public function license() : License
358
    {
359
        return $this->license;
360
    }
361
362
    /**
363
     * @return array
364
     */
365
    public function topics() : array
366
    {
367
        return $this->topics;
368
    }
369
}
370