1 | <?php |
||
13 | class Pokemon |
||
14 | { |
||
15 | /** |
||
16 | * @var int |
||
17 | */ |
||
18 | protected $number; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $name; |
||
24 | |||
25 | /** |
||
26 | * @var string[] |
||
27 | */ |
||
28 | protected $types; |
||
29 | |||
30 | /** |
||
31 | * @var int |
||
32 | */ |
||
33 | protected $cp; |
||
34 | |||
35 | /** |
||
36 | * @var int |
||
37 | */ |
||
38 | protected $hp; |
||
39 | |||
40 | /** |
||
41 | * @var int |
||
42 | */ |
||
43 | protected $baseAttack; |
||
44 | |||
45 | /** |
||
46 | * @var int |
||
47 | */ |
||
48 | protected $baseDefense; |
||
49 | |||
50 | /** |
||
51 | * @var int |
||
52 | */ |
||
53 | protected $baseStamina; |
||
54 | |||
55 | /** |
||
56 | * @var Collection |
||
57 | */ |
||
58 | protected $ivCombinaisons; |
||
59 | |||
60 | /** |
||
61 | * Pokemon constructor. |
||
62 | * @param int $number |
||
63 | * @param string $name |
||
64 | * @param int $baseAttack |
||
65 | * @param int $baseDefense |
||
66 | * @param int $baseStamina |
||
67 | * @param string[] $types |
||
68 | */ |
||
69 | public function __construct( |
||
84 | |||
85 | /** |
||
86 | * Return the minimum of perfection of a Pokemon |
||
87 | * @return IvCombinaison|null |
||
88 | */ |
||
89 | public function getMinimumCombinaison(): ?IvCombinaison |
||
98 | |||
99 | /** |
||
100 | * Return the maximum of perfection of a Pokemon |
||
101 | * @return IvCombinaison|null |
||
102 | */ |
||
103 | public function getMaximumCombinaison(): ?IvCombinaison |
||
112 | |||
113 | /** |
||
114 | * Return the average perfection of a Pokemon |
||
115 | * @return float|null |
||
116 | */ |
||
117 | public function getAveragePerfection(): ?float |
||
124 | |||
125 | /** |
||
126 | * Return the min attack of a Pokemon |
||
127 | * @return int |
||
128 | */ |
||
129 | public function getMinAttack(): ?int |
||
136 | |||
137 | /** |
||
138 | * Return the max attack of a Pokemon |
||
139 | * @return int |
||
140 | */ |
||
141 | public function getMaxAttack(): ?int |
||
148 | |||
149 | /** |
||
150 | * Return the min defense of a Pokemon |
||
151 | * @return int |
||
152 | */ |
||
153 | public function getMinDefense(): ?int |
||
160 | |||
161 | /** |
||
162 | * Return the max defense of a Pokemon |
||
163 | * @return int |
||
164 | */ |
||
165 | public function getMaxDefense(): ?int |
||
172 | |||
173 | /** |
||
174 | * Return the min stamina of a Pokemon |
||
175 | * @return int |
||
176 | */ |
||
177 | public function getMinStamina(): ?int |
||
184 | |||
185 | /** |
||
186 | * Return the max stamina of a Pokemon |
||
187 | * @return int |
||
188 | */ |
||
189 | public function getMaxStamina(): ?int |
||
196 | |||
197 | /** |
||
198 | * Return the min level of a Pokemon |
||
199 | * @return float |
||
200 | */ |
||
201 | public function getMinLevel(): ?float |
||
212 | |||
213 | /** |
||
214 | * Return the max level of a Pokemon |
||
215 | * @return float |
||
216 | */ |
||
217 | public function getMaxLevel(): ?float |
||
228 | |||
229 | /** |
||
230 | * Get ivCombinaisons |
||
231 | * |
||
232 | * @return Collection |
||
233 | */ |
||
234 | public function getIvCombinaisons(): Collection |
||
238 | |||
239 | /** |
||
240 | * Set ivCombinaisons |
||
241 | * |
||
242 | * @param Collection $ivCombinaisons |
||
243 | * |
||
244 | * @return Pokemon |
||
245 | */ |
||
246 | public function setIvCombinaisons(Collection $ivCombinaisons) |
||
252 | |||
253 | /** |
||
254 | * Get number |
||
255 | * |
||
256 | * @return int |
||
257 | */ |
||
258 | public function getNumber(): int |
||
262 | |||
263 | /** |
||
264 | * Get name |
||
265 | * |
||
266 | * @return string |
||
267 | */ |
||
268 | public function getName(): string |
||
272 | |||
273 | /** |
||
274 | * Get types |
||
275 | * |
||
276 | * @return \string[] |
||
277 | */ |
||
278 | public function getTypes(): array |
||
282 | |||
283 | /** |
||
284 | * Get cp |
||
285 | * |
||
286 | * @return int|null |
||
287 | */ |
||
288 | public function getCp(): ?int |
||
292 | |||
293 | /** |
||
294 | * Set cp |
||
295 | * |
||
296 | * @param int $cp |
||
297 | * |
||
298 | * @return Pokemon |
||
299 | */ |
||
300 | public function setCp(int $cp) |
||
305 | |||
306 | /** |
||
307 | * Get hp |
||
308 | * |
||
309 | * @return int|null |
||
310 | */ |
||
311 | public function getHp(): ?int |
||
315 | |||
316 | /** |
||
317 | * Set hp |
||
318 | * |
||
319 | * @param int $hp |
||
320 | * |
||
321 | * @return Pokemon |
||
322 | */ |
||
323 | public function setHp(int $hp) |
||
328 | |||
329 | /** |
||
330 | * Get baseAttack |
||
331 | * |
||
332 | * @return int |
||
333 | */ |
||
334 | public function getBaseAttack(): int |
||
338 | |||
339 | /** |
||
340 | * Get baseDefense |
||
341 | * |
||
342 | * @return int |
||
343 | */ |
||
344 | public function getBaseDefense(): int |
||
348 | |||
349 | /** |
||
350 | * Get baseStamina |
||
351 | * |
||
352 | * @return int |
||
353 | */ |
||
354 | public function getBaseStamina(): int |
||
358 | } |
||
359 |