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::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
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