1 | <?php declare(strict_types=1); |
||
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 | protected $updated_at; |
||
108 | |||
109 | /** |
||
110 | * @return int |
||
111 | */ |
||
112 | 4 | public function id() : int |
|
113 | { |
||
114 | 4 | return $this->id; |
|
115 | } |
||
116 | |||
117 | /** |
||
118 | * @return string |
||
119 | */ |
||
120 | 4 | public function login() : string |
|
121 | { |
||
122 | 4 | return $this->login; |
|
123 | } |
||
124 | |||
125 | /** |
||
126 | * @return string |
||
127 | */ |
||
128 | 4 | public function url() : string |
|
129 | { |
||
130 | 4 | return $this->url; |
|
131 | } |
||
132 | |||
133 | /** |
||
134 | * @return string |
||
135 | */ |
||
136 | 4 | public function avatarUrl() : string |
|
137 | { |
||
138 | 4 | return $this->avatar_url; |
|
139 | } |
||
140 | |||
141 | /** |
||
142 | * @return string |
||
143 | */ |
||
144 | 4 | public function type() : string |
|
145 | { |
||
146 | 4 | return $this->type; |
|
147 | } |
||
148 | |||
149 | /** |
||
150 | * @return bool |
||
151 | */ |
||
152 | 4 | public function siteAdmin() : bool |
|
153 | { |
||
154 | 4 | return $this->site_admin; |
|
155 | } |
||
156 | |||
157 | /** |
||
158 | * @return string |
||
159 | */ |
||
160 | 4 | public function name() : string |
|
161 | { |
||
162 | 4 | return $this->name; |
|
163 | } |
||
164 | |||
165 | /** |
||
166 | * @return string |
||
167 | */ |
||
168 | 4 | public function company() : string |
|
169 | { |
||
170 | 4 | return $this->company; |
|
171 | } |
||
172 | |||
173 | /** |
||
174 | * @return string |
||
175 | */ |
||
176 | 4 | public function blog() : string |
|
177 | { |
||
178 | 4 | return $this->blog; |
|
179 | } |
||
180 | |||
181 | /** |
||
182 | * @return string |
||
183 | */ |
||
184 | 4 | public function location() : string |
|
185 | { |
||
186 | 4 | return $this->location; |
|
187 | } |
||
188 | |||
189 | /** |
||
190 | * @return string |
||
191 | */ |
||
192 | 4 | public function email() : string |
|
193 | { |
||
194 | 4 | return $this->email; |
|
195 | } |
||
196 | |||
197 | /** |
||
198 | * @return bool |
||
199 | */ |
||
200 | 4 | public function hireable() : bool |
|
201 | { |
||
202 | 4 | return $this->hireable; |
|
203 | } |
||
204 | |||
205 | /** |
||
206 | * @return string |
||
207 | */ |
||
208 | 4 | public function bio() : string |
|
209 | { |
||
210 | 4 | return $this->bio; |
|
211 | } |
||
212 | |||
213 | /** |
||
214 | * @return string |
||
215 | */ |
||
216 | 4 | public function publicRepos() : string |
|
217 | { |
||
218 | 4 | return $this->public_repos; |
|
219 | } |
||
220 | |||
221 | /** |
||
222 | * @return string |
||
223 | */ |
||
224 | 4 | public function publicGists() : string |
|
225 | { |
||
226 | 4 | return $this->public_gists; |
|
227 | } |
||
228 | |||
229 | /** |
||
230 | * @return string |
||
231 | */ |
||
232 | 4 | public function followers() : string |
|
233 | { |
||
234 | 4 | return $this->followers; |
|
235 | } |
||
236 | |||
237 | /** |
||
238 | * @return string |
||
239 | */ |
||
240 | 4 | public function following() : string |
|
241 | { |
||
242 | 4 | return $this->following; |
|
243 | } |
||
244 | |||
245 | /** |
||
246 | * @return DateTimeInterface |
||
247 | */ |
||
248 | public function createdAt() : DateTimeInterface |
||
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 |