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

UserContainer::getAvatar()   A

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