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 ( 9be716...8dfb79 )
by Cas
10:46 queued 07:19
created

FilesListPayloadResponse   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 25%

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 3
c 3
b 0
f 0
lcom 0
cbo 1
dl 0
loc 38
ccs 2
cts 8
cp 0.25
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getFiles() 0 4 1
A getPaging() 0 4 1
A getPossibleErrors() 0 6 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
    protected function getPossibleErrors()
52
    {
53
        return array_merge(parent::getPossibleErrors(), [
54
            'unknown_type' => 'Value passed for types was invalid',
55
        ]);
56
    }
57
}
58