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 ( 547e0c...0c21f5 )
by Cees-Jan
10:26 queued 08:03
created

User::company()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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