1 | <?php |
||
9 | class World |
||
10 | { |
||
11 | use ImmutableTrait, SerializableTrait; |
||
12 | |||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | private $name; |
||
17 | |||
18 | /** |
||
19 | * @var int |
||
20 | */ |
||
21 | private $online; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $location; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | private $type; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | private $additional; |
||
37 | |||
38 | /** |
||
39 | * World constructor. |
||
40 | * @param string $name |
||
41 | * @param int $online |
||
42 | * @param string $location |
||
43 | * @param string $type |
||
44 | * @param string $additional |
||
45 | * @throws ImmutableException |
||
46 | */ |
||
47 | public function __construct(string $name, int $online, string $location, string $type, string $additional) |
||
57 | |||
58 | /** |
||
59 | * @return string |
||
60 | */ |
||
61 | public function getName(): string |
||
65 | |||
66 | /** |
||
67 | * @return int |
||
68 | */ |
||
69 | public function getOnline(): int |
||
73 | |||
74 | /** |
||
75 | * @return string |
||
76 | */ |
||
77 | public function getLocation(): string |
||
81 | |||
82 | /** |
||
83 | * @return string |
||
84 | */ |
||
85 | public function getType(): string |
||
89 | |||
90 | /** |
||
91 | * @return string |
||
92 | */ |
||
93 | public function getAdditional(): string |
||
97 | |||
98 | /** |
||
99 | * @return bool |
||
100 | */ |
||
101 | public function isBlocked(): bool |
||
105 | |||
106 | /** |
||
107 | * @return bool |
||
108 | */ |
||
109 | public function isPremium(): bool |
||
113 | |||
114 | /** |
||
115 | * @return bool |
||
116 | */ |
||
117 | public function isLocked(): bool |
||
121 | |||
122 | /** |
||
123 | * @return bool |
||
124 | */ |
||
125 | public function isExperimental(): bool |
||
129 | } |
||
130 |