Passed
Push — dev ( b6688d...d42601 )
by Janko
11:12
created

UserContainer   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 32
ccs 13
cts 13
cp 1
rs 10
c 0
b 0
f 0
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getFactionId() 0 3 1
A __construct() 0 1 1
A getCss() 0 3 1
A getId() 0 3 1
A hasStationsNavigation() 0 3 1
A getName() 0 3 1
A getAvatar() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Stu\Module\Control\Render;
6
7
final class UserContainer
8
{
9 168
    public function __construct(private int $id, private string $avatar, private string $name, private int $factionId, private string $css, private bool $hasStationsNavigation) {}
10
11 10
    public function getId(): int
12
    {
13 10
        return $this->id;
14
    }
15
16 3
    public function getAvatar(): string
17
    {
18 3
        return $this->avatar;
19
    }
20
21 10
    public function getName(): string
22
    {
23 10
        return $this->name;
24
    }
25
26 11
    public function getFactionId(): int
27
    {
28 11
        return $this->factionId;
29
    }
30
31 18
    public function getCss(): string
32
    {
33 18
        return $this->css;
34
    }
35
36 3
    public function hasStationsNavigation(): bool
37
    {
38 3
        return $this->hasStationsNavigation;
39
    }
40
}
41