Total Complexity | 69 |
Total Lines | 991 |
Duplicated Lines | 0 % |
Changes | 0 |
Complex classes like Player often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use Player, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
16 | class Player |
||
17 | { |
||
18 | use Sluggable; |
||
19 | |||
20 | /** |
||
21 | * @var \VideoGamesRecords\CoreBundle\Entity\UserInterface |
||
22 | * |
||
23 | * @ORM\OneToOne(targetEntity="VideoGamesRecords\CoreBundle\Entity\UserInterface") |
||
24 | * @ORM\JoinColumn(name="normandie_user_id", referencedColumnName="id") |
||
25 | */ |
||
26 | private $normandieUser; |
||
27 | |||
28 | /** |
||
29 | * @var integer |
||
30 | * |
||
31 | * @ORM\Column(name="idPlayer", type="integer") |
||
32 | * @ORM\Id |
||
33 | * @ORM\GeneratedValue(strategy="IDENTITY") |
||
34 | */ |
||
35 | private $idPlayer; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | * |
||
40 | * @Assert\Length(max="50") |
||
41 | * @ORM\Column(name="pseudo", type="string", length=50, nullable=false) |
||
42 | */ |
||
43 | private $pseudo; |
||
44 | |||
45 | /** |
||
46 | * @var string |
||
47 | * |
||
48 | * @ORM\Column(name="avatar", type="string", length=100, nullable=false) |
||
49 | */ |
||
50 | private $avatar = 'default.jpg'; |
||
51 | |||
52 | /** |
||
53 | * @var string |
||
54 | * |
||
55 | * @ORM\Column(name="gamerCard", type="string", length=50, nullable=true) |
||
56 | */ |
||
57 | private $gamerCard; |
||
58 | |||
59 | /** |
||
60 | * @var boolean |
||
61 | * |
||
62 | * @ORM\Column(name="displayGamerCard", type="boolean", nullable=false) |
||
63 | */ |
||
64 | private $displayGamerCard = true; |
||
65 | |||
66 | /** |
||
67 | * @var boolean |
||
68 | * |
||
69 | * @ORM\Column(name="displayGoalBar", type="boolean", nullable=false) |
||
70 | */ |
||
71 | private $displayGoalBar = true; |
||
72 | |||
73 | /** |
||
74 | * @var integer |
||
75 | * |
||
76 | * @ORM\Column(name="chartRank0", type="integer", nullable=true) |
||
77 | */ |
||
78 | private $chartRank0; |
||
79 | |||
80 | /** |
||
81 | * @var integer |
||
82 | * |
||
83 | * @ORM\Column(name="chartRank1", type="integer", nullable=true) |
||
84 | */ |
||
85 | private $chartRank1; |
||
86 | |||
87 | /** |
||
88 | * @var integer |
||
89 | * |
||
90 | * @ORM\Column(name="chartRank2", type="integer", nullable=true) |
||
91 | */ |
||
92 | private $chartRank2; |
||
93 | |||
94 | /** |
||
95 | * @var integer |
||
96 | * |
||
97 | * @ORM\Column(name="chartRank3", type="integer", nullable=true) |
||
98 | */ |
||
99 | private $chartRank3; |
||
100 | |||
101 | /** |
||
102 | * @var integer |
||
103 | * |
||
104 | * @ORM\Column(name="pointChart", type="integer", nullable=false) |
||
105 | */ |
||
106 | private $pointChart = 0; |
||
107 | |||
108 | /** |
||
109 | * @var integer |
||
110 | * |
||
111 | * @ORM\Column(name="pointVGR", type="integer", nullable=false) |
||
112 | */ |
||
113 | private $pointVGR = 0; |
||
114 | |||
115 | /** |
||
116 | * @var integer |
||
117 | * |
||
118 | * @ORM\Column(name="pointBadge", type="integer", nullable=false) |
||
119 | */ |
||
120 | private $pointBadge = 0; |
||
121 | |||
122 | /** |
||
123 | * @var string |
||
124 | * |
||
125 | * @ORM\Column(name="collection", type="text", length=65535, nullable=true) |
||
126 | */ |
||
127 | private $collection; |
||
128 | |||
129 | /** |
||
130 | * @var integer |
||
131 | * |
||
132 | * @ORM\Column(name="rankPointChart", type="integer", nullable=true) |
||
133 | */ |
||
134 | private $rankPointChart; |
||
135 | |||
136 | /** |
||
137 | * @var integer |
||
138 | * |
||
139 | * @ORM\Column(name="rankMedal", type="integer", nullable=true) |
||
140 | */ |
||
141 | private $rankMedal; |
||
142 | |||
143 | /** |
||
144 | * @var integer |
||
145 | * |
||
146 | * @ORM\Column(name="rankProof", type="integer", nullable=true) |
||
147 | */ |
||
148 | private $rankProof; |
||
149 | |||
150 | /** |
||
151 | * @var integer |
||
152 | * |
||
153 | * @ORM\Column(name="rankBadge", type="integer", nullable=true) |
||
154 | */ |
||
155 | private $rankBadge; |
||
156 | |||
157 | /** |
||
158 | * @var integer |
||
159 | * |
||
160 | * @ORM\Column(name="rankCup", type="integer", nullable=true) |
||
161 | */ |
||
162 | private $rankCup; |
||
163 | |||
164 | /** |
||
165 | * @var integer |
||
166 | * |
||
167 | * @ORM\Column(name="gameRank0", type="integer", nullable=true) |
||
168 | */ |
||
169 | private $gameRank0; |
||
170 | |||
171 | /** |
||
172 | * @var integer |
||
173 | * |
||
174 | * @ORM\Column(name="gameRank1", type="integer", nullable=true) |
||
175 | */ |
||
176 | private $gameRank1; |
||
177 | |||
178 | /** |
||
179 | * @var integer |
||
180 | * |
||
181 | * @ORM\Column(name="gameRank2", type="integer", nullable=true) |
||
182 | */ |
||
183 | private $gameRank2; |
||
184 | |||
185 | /** |
||
186 | * @var integer |
||
187 | * |
||
188 | * @ORM\Column(name="gameRank3", type="integer", nullable=true) |
||
189 | */ |
||
190 | private $gameRank3; |
||
191 | |||
192 | /** |
||
193 | * @var integer |
||
194 | * |
||
195 | * @ORM\Column(name="nbGame", type="integer", nullable=false) |
||
196 | */ |
||
197 | private $nbGame = 0; |
||
198 | |||
199 | /** |
||
200 | * @var integer |
||
201 | * |
||
202 | * @ORM\Column(name="nbChart", type="integer", nullable=false) |
||
203 | */ |
||
204 | private $nbChart = 0; |
||
205 | |||
206 | /** |
||
207 | * @var integer |
||
208 | * |
||
209 | * @ORM\Column(name="nbChartProven", type="integer", nullable=false) |
||
210 | */ |
||
211 | private $nbChartProven = 0; |
||
212 | |||
213 | /** |
||
214 | * @var integer |
||
215 | * |
||
216 | * @ORM\Column(name="nbMasterBadge", type="integer", nullable=false) |
||
217 | */ |
||
218 | private $nbMasterBadge = 0; |
||
219 | |||
220 | /** |
||
221 | * @var integer |
||
222 | * |
||
223 | * @ORM\Column(name="pointGame", type="integer", nullable=false) |
||
224 | */ |
||
225 | private $pointGame = 0; |
||
226 | |||
227 | /** |
||
228 | * @var integer |
||
229 | * |
||
230 | * @ORM\Column(name="rankPointGame", type="integer", nullable=true) |
||
231 | */ |
||
232 | private $rankPointGame; |
||
233 | |||
234 | /** |
||
235 | * @ORM\OneToMany(targetEntity="VideoGamesRecords\CoreBundle\Entity\PlayerGame", mappedBy="player") |
||
236 | */ |
||
237 | private $playerGame; |
||
238 | |||
239 | /** |
||
240 | * @ORM\OneToMany(targetEntity="VideoGamesRecords\CoreBundle\Entity\PlayerBadge", mappedBy="player") |
||
241 | */ |
||
242 | private $playerBadge; |
||
243 | |||
244 | /** |
||
245 | * @var Team |
||
246 | * |
||
247 | * @ORM\ManyToOne(targetEntity="VideoGamesRecords\TeamBundle\Entity\Team", inversedBy="players") |
||
248 | * @ORM\JoinColumns({ |
||
249 | * @ORM\JoinColumn(name="idTeam", referencedColumnName="idTeam") |
||
250 | * }) |
||
251 | */ |
||
252 | private $team; |
||
253 | |||
254 | /** |
||
255 | * @return string |
||
256 | */ |
||
257 | public function __toString() |
||
258 | { |
||
259 | return sprintf('%s [%s]', $this->getPseudo(), $this->idPlayer); |
||
260 | } |
||
261 | |||
262 | /** |
||
263 | * Set idPlayer |
||
264 | * |
||
265 | * @param integer $idPlayer |
||
266 | * @return Player |
||
267 | */ |
||
268 | public function setIdPlayer($idPlayer) |
||
269 | { |
||
270 | $this->idPlayer = $idPlayer; |
||
271 | return $this; |
||
272 | } |
||
273 | |||
274 | /** |
||
275 | * Get idPlayer |
||
276 | * |
||
277 | * @return integer |
||
278 | */ |
||
279 | public function getIdPlayer() |
||
280 | { |
||
281 | return $this->idPlayer; |
||
282 | } |
||
283 | |||
284 | /** |
||
285 | * Set pseudo |
||
286 | * |
||
287 | * @param string $pseudo |
||
288 | * @return Player |
||
289 | */ |
||
290 | public function setPseudo($pseudo) |
||
291 | { |
||
292 | $this->pseudo = $pseudo; |
||
293 | |||
294 | return $this; |
||
295 | } |
||
296 | |||
297 | /** |
||
298 | * Get pseudo |
||
299 | * |
||
300 | * @return string |
||
301 | */ |
||
302 | public function getPseudo() |
||
303 | { |
||
304 | return $this->pseudo; |
||
305 | } |
||
306 | |||
307 | /** |
||
308 | * Set avatar |
||
309 | * |
||
310 | * @param string $avatar |
||
311 | * @return Player |
||
312 | */ |
||
313 | public function setAvatar($avatar) |
||
314 | { |
||
315 | $this->avatar = $avatar; |
||
316 | |||
317 | return $this; |
||
318 | } |
||
319 | |||
320 | /** |
||
321 | * Get avatar |
||
322 | * |
||
323 | * @return string |
||
324 | */ |
||
325 | public function getAvatar() |
||
326 | { |
||
327 | return $this->avatar; |
||
328 | } |
||
329 | |||
330 | /** |
||
331 | * Set gamerCard |
||
332 | * |
||
333 | * @param string $gamerCard |
||
334 | * @return Player |
||
335 | */ |
||
336 | public function setGamerCard($gamerCard) |
||
337 | { |
||
338 | $this->gamerCard = $gamerCard; |
||
339 | |||
340 | return $this; |
||
341 | } |
||
342 | |||
343 | /** |
||
344 | * Get gamerCard |
||
345 | * |
||
346 | * @return string |
||
347 | */ |
||
348 | public function getGamerCard() |
||
349 | { |
||
350 | return $this->gamerCard; |
||
351 | } |
||
352 | |||
353 | /** |
||
354 | * Set displayGamerCard |
||
355 | * |
||
356 | * @param boolean $displayGamerCard |
||
357 | * @return Player |
||
358 | */ |
||
359 | public function setDisplayGamerCard($displayGamerCard) |
||
360 | { |
||
361 | $this->displayGamerCard = $displayGamerCard; |
||
362 | |||
363 | return $this; |
||
364 | } |
||
365 | |||
366 | /** |
||
367 | * Get displayGamerCard |
||
368 | * |
||
369 | * @return boolean |
||
370 | */ |
||
371 | public function getDisplayGamerCard() |
||
372 | { |
||
373 | return $this->displayGamerCard; |
||
374 | } |
||
375 | |||
376 | /** |
||
377 | * Set displayGoalBar |
||
378 | * |
||
379 | * @param boolean $displayGoalBar |
||
380 | * @return Player |
||
381 | */ |
||
382 | public function setDisplayGoalBar($displayGoalBar) |
||
383 | { |
||
384 | $this->displayGoalBar = $displayGoalBar; |
||
385 | |||
386 | return $this; |
||
387 | } |
||
388 | |||
389 | /** |
||
390 | * Get displayGoalBar |
||
391 | * |
||
392 | * @return boolean |
||
393 | */ |
||
394 | public function getDisplayGoalBar() |
||
395 | { |
||
396 | return $this->displayGoalBar; |
||
397 | } |
||
398 | |||
399 | /** |
||
400 | * Set chartRank0 |
||
401 | * |
||
402 | * @param integer $chartRank0 |
||
403 | * @return Player |
||
404 | */ |
||
405 | public function setChartRank0($chartRank0) |
||
406 | { |
||
407 | $this->chartRank0 = $chartRank0; |
||
408 | |||
409 | return $this; |
||
410 | } |
||
411 | |||
412 | /** |
||
413 | * Get chartRank0 |
||
414 | * |
||
415 | * @return integer |
||
416 | */ |
||
417 | public function getChartRank0() |
||
418 | { |
||
419 | return $this->chartRank0; |
||
420 | } |
||
421 | |||
422 | /** |
||
423 | * Set chartRank1 |
||
424 | * |
||
425 | * @param integer $chartRank1 |
||
426 | * @return Player |
||
427 | */ |
||
428 | public function setChartRank1($chartRank1) |
||
429 | { |
||
430 | $this->chartRank1 = $chartRank1; |
||
431 | |||
432 | return $this; |
||
433 | } |
||
434 | |||
435 | /** |
||
436 | * Get chartRank1 |
||
437 | * |
||
438 | * @return integer |
||
439 | */ |
||
440 | public function getChartRank1() |
||
441 | { |
||
442 | return $this->chartRank1; |
||
443 | } |
||
444 | |||
445 | /** |
||
446 | * Set chartRank2 |
||
447 | * |
||
448 | * @param integer $chartRank2 |
||
449 | * @return Player |
||
450 | */ |
||
451 | public function setChartRank2($chartRank2) |
||
452 | { |
||
453 | $this->chartRank2 = $chartRank2; |
||
454 | |||
455 | return $this; |
||
456 | } |
||
457 | |||
458 | /** |
||
459 | * Get chartRank2 |
||
460 | * |
||
461 | * @return integer |
||
462 | */ |
||
463 | public function getChartRank2() |
||
464 | { |
||
465 | return $this->chartRank2; |
||
466 | } |
||
467 | |||
468 | /** |
||
469 | * Set chartRank3 |
||
470 | * |
||
471 | * @param integer $chartRank3 |
||
472 | * @return Player |
||
473 | */ |
||
474 | public function setChartRank3($chartRank3) |
||
475 | { |
||
476 | $this->chartRank3 = $chartRank3; |
||
477 | |||
478 | return $this; |
||
479 | } |
||
480 | |||
481 | /** |
||
482 | * Get chartRank3 |
||
483 | * |
||
484 | * @return integer |
||
485 | */ |
||
486 | public function getChartRank3() |
||
487 | { |
||
488 | return $this->chartRank3; |
||
489 | } |
||
490 | |||
491 | /** |
||
492 | * Set pointChart |
||
493 | * |
||
494 | * @param integer $pointChart |
||
495 | * @return Player |
||
496 | */ |
||
497 | public function setPointChart($pointChart) |
||
498 | { |
||
499 | $this->pointChart = $pointChart; |
||
500 | |||
501 | return $this; |
||
502 | } |
||
503 | |||
504 | /** |
||
505 | * Get pointChart |
||
506 | * |
||
507 | * @return integer |
||
508 | */ |
||
509 | public function getPointChart() |
||
510 | { |
||
511 | return $this->pointChart; |
||
512 | } |
||
513 | |||
514 | /** |
||
515 | * Set pointVGR |
||
516 | * |
||
517 | * @param integer $pointVGR |
||
518 | * @return Player |
||
519 | */ |
||
520 | public function setPointVGR($pointVGR) |
||
521 | { |
||
522 | $this->pointVGR = $pointVGR; |
||
523 | |||
524 | return $this; |
||
525 | } |
||
526 | |||
527 | /** |
||
528 | * Get pointVGR |
||
529 | * |
||
530 | * @return integer |
||
531 | */ |
||
532 | public function getPointVGR() |
||
533 | { |
||
534 | return $this->pointVGR; |
||
535 | } |
||
536 | |||
537 | /** |
||
538 | * Set pointBadge |
||
539 | * |
||
540 | * @param integer $pointBadge |
||
541 | * @return Player |
||
542 | */ |
||
543 | public function setPointBadge($pointBadge) |
||
544 | { |
||
545 | $this->pointBadge = $pointBadge; |
||
546 | |||
547 | return $this; |
||
548 | } |
||
549 | |||
550 | /** |
||
551 | * Get pointBadge |
||
552 | * |
||
553 | * @return integer |
||
554 | */ |
||
555 | public function getPointBadge() |
||
558 | } |
||
559 | |||
560 | /** |
||
561 | * Set collection |
||
562 | * |
||
563 | * @param string $collection |
||
564 | * @return Player |
||
565 | */ |
||
566 | public function setCollection($collection) |
||
567 | { |
||
568 | $this->collection = $collection; |
||
569 | |||
570 | return $this; |
||
571 | } |
||
572 | |||
573 | /** |
||
574 | * Get collection |
||
575 | * |
||
576 | * @return string |
||
577 | */ |
||
578 | public function getCollection() |
||
579 | { |
||
580 | return $this->collection; |
||
581 | } |
||
582 | |||
583 | /** |
||
584 | * Set rankPointChart |
||
585 | * |
||
586 | * @param integer $rankPointChart |
||
587 | * @return Player |
||
588 | */ |
||
589 | public function setRankPointChart($rankPointChart) |
||
590 | { |
||
591 | $this->rankPointChart = $rankPointChart; |
||
592 | |||
593 | return $this; |
||
594 | } |
||
595 | |||
596 | /** |
||
597 | * Get rankPointChart |
||
598 | * |
||
599 | * @return integer |
||
600 | */ |
||
601 | public function getRankPointChart() |
||
602 | { |
||
603 | return $this->rankPointChart; |
||
604 | } |
||
605 | |||
606 | /** |
||
607 | * Set rankMedal |
||
608 | * |
||
609 | * @param integer $rankMedal |
||
610 | * @return Player |
||
611 | */ |
||
612 | public function setRankMedal($rankMedal) |
||
613 | { |
||
614 | $this->rankMedal = $rankMedal; |
||
615 | |||
616 | return $this; |
||
617 | } |
||
618 | |||
619 | /** |
||
620 | * Get rankMedal |
||
621 | * |
||
622 | * @return integer |
||
623 | */ |
||
624 | public function getRankMedal() |
||
625 | { |
||
626 | return $this->rankMedal; |
||
627 | } |
||
628 | |||
629 | /** |
||
630 | * Set rankProof |
||
631 | * |
||
632 | * @param integer $rankProof |
||
633 | * @return Player |
||
634 | */ |
||
635 | public function setRankProof($rankProof) |
||
636 | { |
||
637 | $this->rankProof = $rankProof; |
||
638 | |||
639 | return $this; |
||
640 | } |
||
641 | |||
642 | /** |
||
643 | * Get rankProof |
||
644 | * |
||
645 | * @return integer |
||
646 | */ |
||
647 | public function getRankProof() |
||
648 | { |
||
649 | return $this->rankProof; |
||
650 | } |
||
651 | |||
652 | /** |
||
653 | * Set rankBadge |
||
654 | * |
||
655 | * @param integer $rankBadge |
||
656 | * @return Player |
||
657 | */ |
||
658 | public function setRankBadge($rankBadge) |
||
659 | { |
||
660 | $this->rankBadge = $rankBadge; |
||
661 | |||
662 | return $this; |
||
663 | } |
||
664 | |||
665 | /** |
||
666 | * Get rankBadge |
||
667 | * |
||
668 | * @return integer |
||
669 | */ |
||
670 | public function getRankBadge() |
||
671 | { |
||
672 | return $this->rankBadge; |
||
673 | } |
||
674 | |||
675 | /** |
||
676 | * Set rankCup |
||
677 | * |
||
678 | * @param integer $rankCup |
||
679 | * @return Player |
||
680 | */ |
||
681 | public function setRankCup($rankCup) |
||
682 | { |
||
683 | $this->rankCup = $rankCup; |
||
684 | |||
685 | return $this; |
||
686 | } |
||
687 | |||
688 | /** |
||
689 | * Get rankCup |
||
690 | * |
||
691 | * @return integer |
||
692 | */ |
||
693 | public function getRankCup() |
||
694 | { |
||
695 | return $this->rankCup; |
||
696 | } |
||
697 | |||
698 | /** |
||
699 | * Set gameRank0 |
||
700 | * |
||
701 | * @param integer $gameRank0 |
||
702 | * @return Player |
||
703 | */ |
||
704 | public function setGameRank0($gameRank0) |
||
705 | { |
||
706 | $this->gameRank0 = $gameRank0; |
||
707 | |||
708 | return $this; |
||
709 | } |
||
710 | |||
711 | /** |
||
712 | * Get gameRank0 |
||
713 | * |
||
714 | * @return integer |
||
715 | */ |
||
716 | public function getgameRank0() |
||
717 | { |
||
718 | return $this->gameRank0; |
||
719 | } |
||
720 | |||
721 | /** |
||
722 | * Set gameRank1 |
||
723 | * |
||
724 | * @param integer $gameRank1 |
||
725 | * @return Player |
||
726 | */ |
||
727 | public function setGameRank1($gameRank1) |
||
728 | { |
||
729 | $this->gameRank1 = $gameRank1; |
||
730 | |||
731 | return $this; |
||
732 | } |
||
733 | |||
734 | /** |
||
735 | * Get gameRank1 |
||
736 | * |
||
737 | * @return integer |
||
738 | */ |
||
739 | public function getGameRank1() |
||
740 | { |
||
741 | return $this->gameRank1; |
||
742 | } |
||
743 | |||
744 | /** |
||
745 | * Set gameRank2 |
||
746 | * |
||
747 | * @param integer $gameRank2 |
||
748 | * @return Player |
||
749 | */ |
||
750 | public function setGameRank2($gameRank2) |
||
751 | { |
||
752 | $this->gameRank2 = $gameRank2; |
||
753 | |||
754 | return $this; |
||
755 | } |
||
756 | |||
757 | /** |
||
758 | * Get gameRank2 |
||
759 | * |
||
760 | * @return integer |
||
761 | */ |
||
762 | public function getGameRank2() |
||
763 | { |
||
764 | return $this->gameRank2; |
||
765 | } |
||
766 | |||
767 | /** |
||
768 | * Set gameRank3 |
||
769 | * |
||
770 | * @param integer $gameRank3 |
||
771 | * @return Player |
||
772 | */ |
||
773 | public function setGameRank3($gameRank3) |
||
774 | { |
||
775 | $this->gameRank3 = $gameRank3; |
||
776 | |||
777 | return $this; |
||
778 | } |
||
779 | |||
780 | /** |
||
781 | * Get gameRank3 |
||
782 | * |
||
783 | * @return integer |
||
784 | */ |
||
785 | public function getGameRank3() |
||
786 | { |
||
787 | return $this->gameRank3; |
||
788 | } |
||
789 | |||
790 | /** |
||
791 | * Set nbGame |
||
792 | * |
||
793 | * @param integer $nbGame |
||
794 | * @return Player |
||
795 | */ |
||
796 | public function setNbGame($nbGame) |
||
797 | { |
||
798 | $this->nbGame = $nbGame; |
||
799 | |||
800 | return $this; |
||
801 | } |
||
802 | |||
803 | /** |
||
804 | * Get nbGame |
||
805 | * |
||
806 | * @return integer |
||
807 | */ |
||
808 | public function getNbGame() |
||
809 | { |
||
810 | return $this->nbGame; |
||
811 | } |
||
812 | |||
813 | /** |
||
814 | * Set nbChart |
||
815 | * |
||
816 | * @param integer $nbChart |
||
817 | * @return Player |
||
818 | */ |
||
819 | public function setNbChart($nbChart) |
||
820 | { |
||
821 | $this->nbChart = $nbChart; |
||
822 | |||
823 | return $this; |
||
824 | } |
||
825 | |||
826 | /** |
||
827 | * Get nbChart |
||
828 | * |
||
829 | * @return integer |
||
830 | */ |
||
831 | public function getNbChart() |
||
832 | { |
||
833 | return $this->nbChart; |
||
834 | } |
||
835 | |||
836 | /** |
||
837 | * Set nbChartProven |
||
838 | * |
||
839 | * @param integer $nbChartProven |
||
840 | * @return Player |
||
841 | */ |
||
842 | public function setNbChartProven($nbChartProven) |
||
843 | { |
||
844 | $this->nbChartProven = $nbChartProven; |
||
845 | |||
846 | return $this; |
||
847 | } |
||
848 | |||
849 | /** |
||
850 | * Get nbChartProven |
||
851 | * |
||
852 | * @return integer |
||
853 | */ |
||
854 | public function getNbChartProven() |
||
855 | { |
||
856 | return $this->nbChartProven; |
||
857 | } |
||
858 | |||
859 | /** |
||
860 | * Set nbMasterBadge |
||
861 | * |
||
862 | * @param integer $nbMasterBadge |
||
863 | * @return Player |
||
864 | */ |
||
865 | public function setNbMasterBadge($nbMasterBadge) |
||
866 | { |
||
867 | $this->nbMasterBadge = $nbMasterBadge; |
||
868 | |||
869 | return $this; |
||
870 | } |
||
871 | |||
872 | /** |
||
873 | * Get nbMasterBadge |
||
874 | * |
||
875 | * @return integer |
||
876 | */ |
||
877 | public function getNbMasterBadge() |
||
878 | { |
||
879 | return $this->nbMasterBadge; |
||
880 | } |
||
881 | |||
882 | /** |
||
883 | * Set pointGame |
||
884 | * |
||
885 | * @param integer $pointGame |
||
886 | * @return Player |
||
887 | */ |
||
888 | public function setPointGame($pointGame) |
||
889 | { |
||
890 | $this->pointGame = $pointGame; |
||
891 | |||
892 | return $this; |
||
893 | } |
||
894 | |||
895 | /** |
||
896 | * Get pointGame |
||
897 | * |
||
898 | * @return integer |
||
899 | */ |
||
900 | public function getPointGame() |
||
903 | } |
||
904 | |||
905 | /** |
||
906 | * Set rankPointGame |
||
907 | * |
||
908 | * @param integer $rankPointGame |
||
909 | * @return Player |
||
910 | */ |
||
911 | public function setRankPointGame($rankPointGame) |
||
912 | { |
||
913 | $this->rankPointGame = $rankPointGame; |
||
914 | |||
915 | return $this; |
||
916 | } |
||
917 | |||
918 | /** |
||
919 | * Get rankPointGame |
||
920 | * |
||
921 | * @return integer |
||
922 | */ |
||
923 | public function getRankPointGame() |
||
924 | { |
||
925 | return $this->rankPointGame; |
||
926 | } |
||
927 | |||
928 | /** |
||
929 | * @return \VideoGamesRecords\CoreBundle\Entity\UserInterface |
||
930 | */ |
||
931 | public function getNormandieUser() |
||
934 | } |
||
935 | |||
936 | /** |
||
937 | * @param \VideoGamesRecords\CoreBundle\Entity\UserInterface $normandieUser |
||
938 | * @return Player |
||
939 | */ |
||
940 | public function setNormandieUser($normandieUser) |
||
941 | { |
||
942 | $this->normandieUser = $normandieUser; |
||
943 | return $this; |
||
944 | } |
||
945 | |||
946 | /** |
||
947 | * @return mixed |
||
948 | */ |
||
949 | public function getPlayerGame() |
||
950 | { |
||
951 | return $this->playerGame; |
||
952 | } |
||
953 | |||
954 | /** |
||
955 | * @return mixed |
||
956 | */ |
||
957 | public function getPlayerBadge() |
||
960 | } |
||
961 | |||
962 | /** |
||
963 | * Set team |
||
964 | * @param Team $team |
||
965 | * @return Player |
||
966 | */ |
||
967 | public function setTeam(Team $team = null) |
||
968 | { |
||
969 | $this->team = $team; |
||
970 | |||
971 | return $this; |
||
972 | } |
||
973 | |||
974 | /** |
||
975 | * Get team |
||
976 | * @return Team |
||
977 | */ |
||
978 | public function getTeam() |
||
979 | { |
||
980 | return $this->team; |
||
981 | } |
||
982 | |||
983 | /** |
||
984 | * @return $this |
||
985 | */ |
||
986 | public function getPlayer() |
||
987 | { |
||
988 | return $this; |
||
989 | } |
||
990 | |||
991 | /** |
||
992 | * Returns an array of the fields used to generate the slug. |
||
993 | * |
||
994 | * @return array |
||
995 | */ |
||
996 | public function getSluggableFields() |
||
999 | } |
||
1000 | |||
1001 | /** |
||
1002 | * @return bool |
||
1003 | */ |
||
1004 | public function isLeader() |
||
1005 | { |
||
1006 | return ($this->getTeam() !== null) && ($this->getTeam()->getIdLeader() === $this->getIdPlayer()); |
||
1007 | } |
||
1008 | } |
||
1009 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths