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 ( 8dcbdd...e0ff20 )
by Cas
23:59 queued 21:09
created

FilesListPayloadResponse::getPossibleErrors()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 3
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\Payload;
13
14
use CL\Slack\Model\File;
15
use CL\Slack\Model\Paging;
16
17
/**
18
 * @author Cas Leentfaar <[email protected]>
19
 */
20
class FilesListPayloadResponse extends AbstractPayloadResponse
21
{
22
    /**
23
     * @var File[]
24
     */
25
    private $files = [];
26
27
    /**
28
     * @var Paging
29
     */
30
    private $paging;
31
32
    /**
33
     * @return File[]|null
34
     */
35 1
    public function getFiles()
36
    {
37 1
        return $this->files;
38
    }
39
40
    /**
41
     * @return Paging|null
42
     */
43
    public function getPaging()
44
    {
45
        return $this->paging;
46
    }
47
48
    /**
49
     * @inheritdoc
50
     */
51 1
    protected function getPossibleErrors()
52
    {
53 1
        return array_merge(parent::getPossibleErrors(), [
54 1
            'unknown_type' => 'Value passed for types was invalid',
55 1
        ]);
56
    }
57
}
58