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 ( cd256e...747ec6 )
by Ema
03:19
created

FileUploadInfo   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 2
dl 0
loc 37
ccs 0
cts 22
cp 0
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getFileInfos() 0 4 1
A getClientIds() 0 4 1
A getFields() 0 7 1
1
<?php
2
3
namespace Pnz\MattermostClient\Model\File;
4
5
use Pnz\MattermostClient\Model\Model;
6
7
class FileUploadInfo extends Model
8
{
9
    protected function __construct(array $data)
10
    {
11
        parent::__construct([
0 ignored issues
show
Bug introduced by
The method __construct() cannot be called from this context as it is declared private in class Pnz\MattermostClient\Model\Model.

This check looks for access to methods that are not accessible from the current context.

If you need to make a method accessible to another context you can raise its visibility level in the defining class.

Loading history...
12
            'client_ids' => $data['client_ids'],
13
            'file_infos' => FileInfos::createFromArray($data['file_infos']),
14
        ]);
15
    }
16
17
    /**
18
     * @return FileInfos
19
     */
20
    public function getFileInfos(): FileInfos
21
    {
22
        return $this->data['file_infos'];
23
    }
24
25
    /**
26
     * @return string[]
27
     */
28
    public function getClientIds(): array
29
    {
30
        return $this->data['client_ids'];
31
    }
32
33
    /**
34
     * {@inheritdoc}
35
     */
36
    protected static function getFields()
37
    {
38
        return [
39
            'file_infos',
40
            'client_ids',
41
        ];
42
    }
43
}
44