Total Complexity | 10 |
Total Lines | 69 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | final class UserContainer |
||
8 | { |
||
9 | private int $id; |
||
10 | private string $avatar; |
||
11 | private string $name; |
||
12 | private ?int $factionId; |
||
13 | private string $css; |
||
14 | private int $prestige; |
||
15 | private bool $hasStationsNavigation; |
||
16 | private bool $showDeals; |
||
17 | |||
18 | public function __construct( |
||
19 | int $id, |
||
20 | string $avatar, |
||
21 | string $name, |
||
22 | ?int $factionId, |
||
23 | string $css, |
||
24 | int $prestige, |
||
25 | bool $hasStationsNavigation, |
||
26 | bool $showDeals |
||
27 | ) { |
||
28 | $this->id = $id; |
||
29 | $this->avatar = $avatar; |
||
30 | $this->name = $name; |
||
31 | $this->factionId = $factionId; |
||
32 | $this->css = $css; |
||
33 | $this->prestige = $prestige; |
||
34 | $this->hasStationsNavigation = $hasStationsNavigation; |
||
35 | $this->showDeals = $showDeals; |
||
36 | } |
||
37 | |||
38 | public function getId(): int |
||
39 | { |
||
40 | return $this->id; |
||
41 | } |
||
42 | |||
43 | public function getAvatar(): string |
||
44 | { |
||
45 | return $this->avatar; |
||
46 | } |
||
47 | |||
48 | public function getName(): string |
||
49 | { |
||
50 | return $this->name; |
||
51 | } |
||
52 | |||
53 | public function getFactionId(): ?int |
||
54 | { |
||
55 | return $this->factionId; |
||
56 | } |
||
57 | |||
58 | public function getCss(): string |
||
59 | { |
||
60 | return $this->css; |
||
61 | } |
||
62 | |||
63 | public function getPrestige(): int |
||
64 | { |
||
65 | return $this->prestige; |
||
66 | } |
||
67 | |||
68 | public function hasStationsNavigation(): bool |
||
69 | { |
||
70 | return $this->hasStationsNavigation; |
||
71 | } |
||
72 | |||
73 | public function showDeals(): int |
||
76 | } |
||
77 | } |
||
78 |