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 ( 3e1084...2dca74 )
by Cees-Jan
10:15
created

User::url()   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\Resource\AbstractResource;
7
use DateTimeInterface;
8
9
/**
10
 * @EmptyResource("EmptyUser")
11
 */
12
abstract class User extends AbstractResource implements UserInterface
13
{
14
    /**
15
     * @var int
16
     */
17
    protected $id;
18
19
    /**
20
     * @var string
21
     */
22
    protected $login;
23
24
    /**
25
     * @var string
26
     */
27
    protected $url;
28
29
    /**
30
     * @var string
31
     */
32
    protected $avatar_url;
33
34
    /**
35
     * @var string
36
     */
37
    protected $type;
38
39
    /**
40
     * @var bool
41
     */
42
    protected $site_admin;
43
44
    /**
45
     * @var string
46
     */
47
    protected $name;
48
49
    /**
50
     * @var string
51
     */
52
    protected $company;
53
54
    /**
55
     * @var string
56
     */
57
    protected $blog;
58
59
    /**
60
     * @var string
61
     */
62
    protected $location;
63
64
    /**
65
     * @var string
66
     */
67
    protected $email;
68
69
    /**
70
     * @var bool
71
     */
72
    protected $hireable;
73
74
    /**
75
     * @var string
76
     */
77
    protected $bio;
78
79
    /**
80
     * @var string
81
     */
82
    protected $public_repos;
83
84
    /**
85
     * @var string
86
     */
87
    protected $public_gists;
88
89
    /**
90
     * @var string
91
     */
92
    protected $followers;
93
94
    /**
95
     * @var string
96
     */
97
    protected $following;
98
99
    /**
100
     * @var DateTimeInterface
101
     */
102
    protected $created_at;
103
104
    /**
105
     * @var DateTimeInterface
106
     */
107 4
    protected $updated_at;
108
109 4
    /**
110
     * @return int
111
     */
112
    public function id() : int
113
    {
114
        return $this->id;
115 4
    }
116
117 4
    /**
118
     * @return string
119
     */
120
    public function login() : string
121
    {
122
        return $this->login;
123 4
    }
124
125 4
    /**
126
     * @return string
127
     */
128
    public function url() : string
129
    {
130
        return $this->url;
131 4
    }
132
133 4
    /**
134
     * @return string
135
     */
136
    public function avatarUrl() : string
137
    {
138
        return $this->avatar_url;
139 4
    }
140
141 4
    /**
142
     * @return string
143
     */
144
    public function type() : string
145
    {
146
        return $this->type;
147 4
    }
148
149 4
    /**
150
     * @return bool
151
     */
152
    public function siteAdmin() : bool
153
    {
154
        return $this->site_admin;
155 4
    }
156
157 4
    /**
158
     * @return string
159
     */
160
    public function name() : string
161
    {
162
        return $this->name;
163 4
    }
164
165 4
    /**
166
     * @return string
167
     */
168
    public function company() : string
169
    {
170
        return $this->company;
171 4
    }
172
173 4
    /**
174
     * @return string
175
     */
176
    public function blog() : string
177
    {
178
        return $this->blog;
179 4
    }
180
181 4
    /**
182
     * @return string
183
     */
184
    public function location() : string
185
    {
186
        return $this->location;
187 4
    }
188
189 4
    /**
190
     * @return string
191
     */
192
    public function email() : string
193
    {
194
        return $this->email;
195 4
    }
196
197 4
    /**
198
     * @return bool
199
     */
200
    public function hireable() : bool
201
    {
202
        return $this->hireable;
203 4
    }
204
205 4
    /**
206
     * @return string
207
     */
208
    public function bio() : string
209
    {
210
        return $this->bio;
211 4
    }
212
213 4
    /**
214
     * @return string
215
     */
216
    public function publicRepos() : string
217
    {
218
        return $this->public_repos;
219 4
    }
220
221 4
    /**
222
     * @return string
223
     */
224
    public function publicGists() : string
225
    {
226
        return $this->public_gists;
227 4
    }
228
229 4
    /**
230
     * @return string
231
     */
232
    public function followers() : string
233
    {
234
        return $this->followers;
235
    }
236
237
    /**
238
     * @return string
239
     */
240
    public function following() : string
241
    {
242
        return $this->following;
243
    }
244
245
    /**
246
     * @return DateTimeInterface
247
     */
248
    public function createdAt() : DateTimeInterface
249
    {
250
        return $this->created_at;
251
    }
252
253
    /**
254
     * @return DateTimeInterface
255
     */
256
    public function updatedAt() : DateTimeInterface
257
    {
258
        return $this->updated_at;
259
    }
260
261
    public function repository(string $repository)
262
    {
263
    }
264
}
265