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.

FileUploadInfo   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 31
ccs 0
cts 20
cp 0
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getFileInfos() 0 3 1
A getFields() 0 5 1
A getClientIds() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Pnz\MattermostClient\Model\File;
6
7
use Pnz\MattermostClient\Model\Model;
8
9
class FileUploadInfo extends Model
10
{
11
    protected function __construct(array $data)
12
    {
13
        parent::__construct([
14
            'client_ids' => $data['client_ids'],
15
            'file_infos' => FileInfos::createFromArray($data['file_infos']),
16
        ]);
17
    }
18
19
    public function getFileInfos(): FileInfos
20
    {
21
        return $this->data['file_infos'];
22
    }
23
24
    /**
25
     * @return string[]
26
     */
27
    public function getClientIds(): array
28
    {
29
        return $this->data['client_ids'];
30
    }
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    protected static function getFields(): array
36
    {
37
        return [
38
            'file_infos',
39
            'client_ids',
40
        ];
41
    }
42
}
43