Total Complexity | 9 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Coverage | 11.11% |
Changes | 0 |
1 | <?php |
||
10 | final class AllianceListItem |
||
11 | { |
||
12 | private AllianceInterface $alliance; |
||
13 | |||
14 | 1 | public function __construct( |
|
18 | } |
||
19 | |||
20 | public function getId(): int |
||
21 | { |
||
22 | return $this->alliance->getId(); |
||
23 | } |
||
24 | |||
25 | public function getName(): string |
||
28 | } |
||
29 | |||
30 | public function getFaction(): ?FactionInterface |
||
31 | { |
||
32 | return $this->alliance->getFaction(); |
||
33 | } |
||
34 | |||
35 | public function getMemberCount(): int |
||
36 | { |
||
37 | return count($this->alliance->getMembers()); |
||
38 | } |
||
39 | |||
40 | public function acceptsApplications(): bool |
||
43 | } |
||
44 | |||
45 | public function hasAvatar(): bool |
||
46 | { |
||
47 | return $this->alliance->getAvatar() !== ''; |
||
48 | } |
||
49 | |||
50 | public function getAvatar(): string |
||
51 | { |
||
52 | return $this->alliance->getAvatar(); |
||
53 | } |
||
54 | |||
55 | public function getMembers(): iterable |
||
58 | } |
||
59 | } |
||
60 |