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 (#6)
by Cees-Jan
04:24
created

Repository::description()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

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