| Total Complexity | 8 |
| Total Lines | 61 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| 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 | |||
| 17 | public function __construct( |
||
| 18 | int $id, |
||
| 19 | string $avatar, |
||
| 20 | string $name, |
||
| 21 | ?int $factionId, |
||
| 22 | string $css, |
||
| 23 | int $prestige, |
||
| 24 | bool $hasStationsNavigation, |
||
| 25 | ) { |
||
| 26 | $this->id = $id; |
||
| 27 | $this->avatar = $avatar; |
||
| 28 | $this->name = $name; |
||
| 29 | $this->factionId = $factionId; |
||
| 30 | $this->css = $css; |
||
| 31 | $this->prestige = $prestige; |
||
| 32 | $this->hasStationsNavigation = $hasStationsNavigation; |
||
| 33 | } |
||
| 34 | |||
| 35 | public function getId(): int |
||
| 36 | { |
||
| 37 | return $this->id; |
||
| 38 | } |
||
| 39 | |||
| 40 | public function getAvatar(): string |
||
| 41 | { |
||
| 42 | return $this->avatar; |
||
| 43 | } |
||
| 44 | |||
| 45 | public function getName(): string |
||
| 46 | { |
||
| 47 | return $this->name; |
||
| 48 | } |
||
| 49 | |||
| 50 | public function getFactionId(): ?int |
||
| 51 | { |
||
| 52 | return $this->factionId; |
||
| 53 | } |
||
| 54 | |||
| 55 | public function getCss(): string |
||
| 56 | { |
||
| 57 | return $this->css; |
||
| 58 | } |
||
| 59 | |||
| 60 | public function getPrestige(): int |
||
| 63 | } |
||
| 64 | |||
| 65 | public function hasStationsNavigation(): bool |
||
| 66 | { |
||
| 67 | return $this->hasStationsNavigation; |
||
| 68 | } |
||
| 69 | } |
||
| 70 |