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.

File::getPreview()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

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
nc 1
nop 0
crap 1
1
<?php
2
3
/*
4
 * This file is part of the Slack API library.
5
 *
6
 * (c) Cas Leentfaar <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace CL\Slack\Model;
13
14
/**
15
 * @author Cas Leentfaar <[email protected]>
16
 *
17
 * @link Official documentation at https://api.slack.com/types/file
18
 */
19
class File extends AbstractModel
20
{
21
    /**
22
     * @var string|null
23
     */
24
    private $id;
25
26
    /**
27
     * @var \DateTime|null
28
     */
29
    private $created;
30
31
    /**
32
     * @var \DateTime|null
33
     */
34
    private $timestamp;
35
36
    /**
37
     * @var string|null
38
     */
39
    private $user;
40
41
    /**
42
     * @var string|null
43
     */
44
    private $name;
45
46
    /**
47
     * @var string|null
48
     */
49
    private $title;
50
51
    /**
52
     * @var string|null
53
     */
54
    private $mimeType;
55
56
    /**
57
     * @var string|null
58
     */
59
    private $fileType;
60
61
    /**
62
     * @var string|null
63
     */
64
    private $prettyType;
65
66
    /**
67
     * @var string|null
68
     */
69
    private $mode;
70
71
    /**
72
     * @var bool|null
73
     */
74
    private $editable;
75
76
    /**
77
     * @var string|null
78
     */
79
    private $externalType;
80
81
    /**
82
     * @var string|null
83
     */
84
    private $size;
85
86
    /**
87
     * @var string|null
88
     */
89
    private $url;
90
91
    /**
92
     * @var string|null
93
     */
94
    private $urlDownload;
95
96
    /**
97
     * @var string|null
98
     */
99
    private $urlPrivate;
100
101
    /**
102
     * @var string|null
103
     */
104
    private $urlPrivateDownload;
105
106
    /**
107
     * @var string|null
108
     */
109
    private $thumb64;
110
111
    /**
112
     * @var string|null
113
     */
114
    private $thumb80;
115
116
    /**
117
     * @var string|null
118
     */
119
    private $thumb360;
120
121
    /**
122
     * @var string|null
123
     */
124
    private $thumb360Gif;
125
126
    /**
127
     * @var string|null
128
     */
129
    private $thumb360W;
130
131
    /**
132
     * @var string|null
133
     */
134
    private $thumb360H;
135
136
    /**
137
     * @var string|null
138
     */
139
    private $permalink;
140
141
    /**
142
     * @var string|null
143
     */
144
    private $editLink;
145
146
    /**
147
     * @var string|null
148
     */
149
    private $preview;
150
151
    /**
152
     * @var string|null
153
     */
154
    private $previewHighlight;
155
156
    /**
157
     * @var int|null
158
     */
159
    private $lines;
160
161
    /**
162
     * @var int|null
163
     */
164
    private $linesMore;
165
166
    /**
167
     * @var bool|null
168
     */
169
    private $isPublic;
170
171
    /**
172
     * @var bool|null
173
     */
174
    private $isExternal;
175
176
    /**
177
     * @var bool|null
178
     */
179
    private $isStarred;
180
181
    /**
182
     * @var bool|null
183
     */
184
    private $publicUrlShared;
185
186
    /**
187
     * @var array<string>|null
188
     */
189
    private $channels;
190
191
    /**
192
     * @var array<string>|null
193
     */
194
    private $groups;
195
196
    /**
197
     * @var string|null
198
     */
199
    private $initialComment;
200
201
    /**
202
     * @var int
203
     */
204
    private $numStars;
205
206
    /**
207
     * @return string The ID of the file
208
     */
209 10
    public function getId()
210
    {
211 10
        return $this->id;
212
    }
213
214
    /**
215
     * @return \DateTime|null The timestamp on which the file was created
216
     */
217 10
    public function getCreated()
218
    {
219 10
        return $this->created;
220
    }
221
222
    /**
223
     * @return \DateTime|null The timestamp on which the file was posted
224
     */
225 10
    public function getTimestamp()
226
    {
227 10
        return $this->timestamp;
228
    }
229
230
    /**
231
     * @return string The name of the file.
232
     */
233 10
    public function getName()
234
    {
235 10
        return $this->name;
236
    }
237
238
    /**
239
     * @return string|null The title that was given to the file.
240
     */
241 10
    public function getTitle()
242
    {
243 10
        return $this->title;
244
    }
245
246
    /**
247
     * @return string The ID of the user that posted the file
248
     */
249 10
    public function getUserId()
250
    {
251 10
        return $this->user;
252
    }
253
254
    /**
255
     * @return array
256
     */
257 10
    public function getChannels()
258
    {
259 10
        return $this->channels;
260
    }
261
262
    /**
263
     * @return string|null
264
     */
265 10
    public function getEditLink()
266
    {
267 10
        return $this->editLink;
268
    }
269
270
    /**
271
     * @return bool|null
272
     */
273 10
    public function isEditable()
274
    {
275 10
        return $this->editable;
276
    }
277
278
    /**
279
     * @return string|null
280
     */
281 10
    public function getExternalType()
282
    {
283 10
        return $this->externalType;
284
    }
285
286
    /**
287
     * @return string|null
288
     */
289 10
    public function getFileType()
290
    {
291 10
        return $this->fileType;
292
    }
293
294
    /**
295
     * @return array
296
     */
297 10
    public function getGroups()
298
    {
299 10
        return $this->groups;
300
    }
301
302
    /**
303
     * @return mixed
304
     */
305 10
    public function getInitialComment()
306
    {
307 10
        return $this->initialComment;
308
    }
309
310
    /**
311
     * @return bool
312
     */
313 10
    public function isExternal()
314
    {
315 10
        return $this->isExternal;
316
    }
317
318
    /**
319
     * @return bool
320
     */
321 10
    public function isPublic()
322
    {
323 10
        return $this->isPublic;
324
    }
325
326
    /**
327
     * @return bool
328
     */
329 10
    public function isStarred()
330
    {
331 10
        return $this->isStarred;
332
    }
333
334
    /**
335
     * @return mixed
336
     */
337 10
    public function getLines()
338
    {
339 10
        return $this->lines;
340
    }
341
342
    /**
343
     * @return int|null
344
     */
345 10
    public function getLinesMore()
346
    {
347 10
        return $this->linesMore;
348
    }
349
350
    /**
351
     * @return string|null
352
     */
353 10
    public function getMimeType()
354
    {
355 10
        return $this->mimeType;
356
    }
357
358
    /**
359
     * @return string|null
360
     */
361 10
    public function getMode()
362
    {
363 10
        return $this->mode;
364
    }
365
366
    /**
367
     * @return int
368
     */
369 10
    public function getNumStars()
370
    {
371 10
        return $this->numStars;
372
    }
373
374
    /**
375
     * @return string|null
376
     */
377 10
    public function getPermalink()
378
    {
379 10
        return $this->permalink;
380
    }
381
382
    /**
383
     * @return string|null
384
     */
385 10
    public function getPrettyType()
386
    {
387 10
        return $this->prettyType;
388
    }
389
390
    /**
391
     * @return string|null
392
     */
393 10
    public function getPreview()
394
    {
395 10
        return $this->preview;
396
    }
397
398
    /**
399
     * @return mixed
400
     */
401 10
    public function getPreviewHighlight()
402
    {
403 10
        return $this->previewHighlight;
404
    }
405
406
    /**
407
     * @return bool
408
     */
409 10
    public function isPublicUrlShared()
410
    {
411 10
        return $this->publicUrlShared;
412
    }
413
414
    /**
415
     * @return string|null
416
     */
417 10
    public function getSize()
418
    {
419 10
        return $this->size;
420
    }
421
422
    /**
423
     * @return string|null
424
     */
425 10
    public function getThumb360()
426
    {
427 10
        return $this->thumb360;
428
    }
429
430
    /**
431
     * @return string|null
432
     */
433 10
    public function getThumb360Gif()
434
    {
435 10
        return $this->thumb360Gif;
436
    }
437
438
    /**
439
     * @return string|null
440
     */
441 10
    public function getThumb360H()
442
    {
443 10
        return $this->thumb360H;
444
    }
445
446
    /**
447
     * @return string|null
448
     */
449 10
    public function getThumb360W()
450
    {
451 10
        return $this->thumb360W;
452
    }
453
454
    /**
455
     * @return string|null
456
     */
457 10
    public function getThumb64()
458
    {
459 10
        return $this->thumb64;
460
    }
461
462
    /**
463
     * @return string|null
464
     */
465 10
    public function getThumb80()
466
    {
467 10
        return $this->thumb80;
468
    }
469
470
    /**
471
     * @return string|null
472
     */
473 10
    public function getUrl()
474
    {
475 10
        return $this->url;
476
    }
477
478
    /**
479
     * @return string|null
480
     */
481 10
    public function getUrlDownload()
482
    {
483 10
        return $this->urlDownload;
484
    }
485
486
    /**
487
     * @return string|null
488
     */
489 10
    public function getUrlPrivate()
490
    {
491 10
        return $this->urlPrivate;
492
    }
493
494
    /**
495
     * @return string|null
496
     */
497 10
    public function getUrlPrivateDownload()
498
    {
499 10
        return $this->urlPrivateDownload;
500
    }
501
}
502