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.

Team   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 16
c 1
b 0
f 0
dl 0
loc 44
ccs 14
cts 14
cp 1
rs 10
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getDisplayName() 0 3 1
A getUpdateAt() 0 3 1
A getName() 0 3 1
A getType() 0 3 1
A getFields() 0 9 1
A getCreateAt() 0 3 1
A getId() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Pnz\MattermostClient\Model\Team;
6
7
use Pnz\MattermostClient\Model\Model;
8
9
final class Team extends Model
10
{
11
    public const TEAM_OPEN = 'O';
12
    public const TEAM_INVITE_ONLY = 'I';
13
14 3
    public function getId(): ?string
15
    {
16 3
        return $this->data['id'];
17
    }
18
19 3
    public function getCreateAt(): ?string
20
    {
21 3
        return $this->data['create_at'];
22
    }
23
24 3
    public function getUpdateAt(): ?string
25
    {
26 3
        return $this->data['update_at'];
27
    }
28
29 3
    public function getName(): ?string
30
    {
31 3
        return $this->data['name'];
32
    }
33
34 3
    public function getDisplayName(): ?string
35
    {
36 3
        return $this->data['display_name'];
37
    }
38
39 1
    public function getType(): ?string
40
    {
41 1
        return $this->data['type'];
42
    }
43
44 3
    protected static function getFields(): array
45
    {
46
        return [
47 3
            'id',
48
            'create_at',
49
            'update_at',
50
            'name',
51
            'display_name',
52
            'type',
53
        ];
54
    }
55
}
56