| Total Complexity | 69 |
| Total Lines | 996 |
| 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="id", type="integer") |
||
| 32 | * @ORM\Id |
||
| 33 | * @ORM\GeneratedValue(strategy="IDENTITY") |
||
| 34 | */ |
||
| 35 | private $id; |
||
| 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\PlayerGroup", mappedBy="player") |
||
| 241 | */ |
||
| 242 | private $playerGroup; |
||
| 243 | |||
| 244 | /** |
||
| 245 | * @ORM\OneToMany(targetEntity="VideoGamesRecords\CoreBundle\Entity\PlayerBadge", mappedBy="player") |
||
| 246 | */ |
||
| 247 | private $playerBadge; |
||
| 248 | |||
| 249 | /** |
||
| 250 | * @var Team |
||
| 251 | * |
||
| 252 | * @ORM\ManyToOne(targetEntity="VideoGamesRecords\TeamBundle\Entity\Team", inversedBy="players") |
||
| 253 | * @ORM\JoinColumns({ |
||
| 254 | * @ORM\JoinColumn(name="idTeam", referencedColumnName="idTeam") |
||
| 255 | * }) |
||
| 256 | */ |
||
| 257 | private $team; |
||
| 258 | |||
| 259 | /** |
||
| 260 | * @return string |
||
| 261 | */ |
||
| 262 | public function __toString() |
||
| 263 | { |
||
| 264 | return sprintf('%s [%s]', $this->getPseudo(), $this->getId()); |
||
| 265 | } |
||
| 266 | |||
| 267 | /** |
||
| 268 | * Set id |
||
| 269 | * |
||
| 270 | * @param integer $id |
||
| 271 | * @return Player |
||
| 272 | */ |
||
| 273 | public function setId($id) |
||
| 274 | { |
||
| 275 | $this->id = $id; |
||
| 276 | return $this; |
||
| 277 | } |
||
| 278 | |||
| 279 | /** |
||
| 280 | * Get id |
||
| 281 | * |
||
| 282 | * @return integer |
||
| 283 | */ |
||
| 284 | public function getId() |
||
| 285 | { |
||
| 286 | return $this->id; |
||
| 287 | } |
||
| 288 | |||
| 289 | /** |
||
| 290 | * Set pseudo |
||
| 291 | * |
||
| 292 | * @param string $pseudo |
||
| 293 | * @return Player |
||
| 294 | */ |
||
| 295 | public function setPseudo($pseudo) |
||
| 296 | { |
||
| 297 | $this->pseudo = $pseudo; |
||
| 298 | |||
| 299 | return $this; |
||
| 300 | } |
||
| 301 | |||
| 302 | /** |
||
| 303 | * Get pseudo |
||
| 304 | * |
||
| 305 | * @return string |
||
| 306 | */ |
||
| 307 | public function getPseudo() |
||
| 308 | { |
||
| 309 | return $this->pseudo; |
||
| 310 | } |
||
| 311 | |||
| 312 | /** |
||
| 313 | * Set avatar |
||
| 314 | * |
||
| 315 | * @param string $avatar |
||
| 316 | * @return Player |
||
| 317 | */ |
||
| 318 | public function setAvatar($avatar) |
||
| 319 | { |
||
| 320 | $this->avatar = $avatar; |
||
| 321 | |||
| 322 | return $this; |
||
| 323 | } |
||
| 324 | |||
| 325 | /** |
||
| 326 | * Get avatar |
||
| 327 | * |
||
| 328 | * @return string |
||
| 329 | */ |
||
| 330 | public function getAvatar() |
||
| 331 | { |
||
| 332 | return $this->avatar; |
||
| 333 | } |
||
| 334 | |||
| 335 | /** |
||
| 336 | * Set gamerCard |
||
| 337 | * |
||
| 338 | * @param string $gamerCard |
||
| 339 | * @return Player |
||
| 340 | */ |
||
| 341 | public function setGamerCard($gamerCard) |
||
| 342 | { |
||
| 343 | $this->gamerCard = $gamerCard; |
||
| 344 | |||
| 345 | return $this; |
||
| 346 | } |
||
| 347 | |||
| 348 | /** |
||
| 349 | * Get gamerCard |
||
| 350 | * |
||
| 351 | * @return string |
||
| 352 | */ |
||
| 353 | public function getGamerCard() |
||
| 354 | { |
||
| 355 | return $this->gamerCard; |
||
| 356 | } |
||
| 357 | |||
| 358 | /** |
||
| 359 | * Set displayGamerCard |
||
| 360 | * |
||
| 361 | * @param boolean $displayGamerCard |
||
| 362 | * @return Player |
||
| 363 | */ |
||
| 364 | public function setDisplayGamerCard($displayGamerCard) |
||
| 365 | { |
||
| 366 | $this->displayGamerCard = $displayGamerCard; |
||
| 367 | |||
| 368 | return $this; |
||
| 369 | } |
||
| 370 | |||
| 371 | /** |
||
| 372 | * Get displayGamerCard |
||
| 373 | * |
||
| 374 | * @return boolean |
||
| 375 | */ |
||
| 376 | public function getDisplayGamerCard() |
||
| 377 | { |
||
| 378 | return $this->displayGamerCard; |
||
| 379 | } |
||
| 380 | |||
| 381 | /** |
||
| 382 | * Set displayGoalBar |
||
| 383 | * |
||
| 384 | * @param boolean $displayGoalBar |
||
| 385 | * @return Player |
||
| 386 | */ |
||
| 387 | public function setDisplayGoalBar($displayGoalBar) |
||
| 388 | { |
||
| 389 | $this->displayGoalBar = $displayGoalBar; |
||
| 390 | |||
| 391 | return $this; |
||
| 392 | } |
||
| 393 | |||
| 394 | /** |
||
| 395 | * Get displayGoalBar |
||
| 396 | * |
||
| 397 | * @return boolean |
||
| 398 | */ |
||
| 399 | public function getDisplayGoalBar() |
||
| 400 | { |
||
| 401 | return $this->displayGoalBar; |
||
| 402 | } |
||
| 403 | |||
| 404 | /** |
||
| 405 | * Set chartRank0 |
||
| 406 | * |
||
| 407 | * @param integer $chartRank0 |
||
| 408 | * @return Player |
||
| 409 | */ |
||
| 410 | public function setChartRank0($chartRank0) |
||
| 411 | { |
||
| 412 | $this->chartRank0 = $chartRank0; |
||
| 413 | |||
| 414 | return $this; |
||
| 415 | } |
||
| 416 | |||
| 417 | /** |
||
| 418 | * Get chartRank0 |
||
| 419 | * |
||
| 420 | * @return integer |
||
| 421 | */ |
||
| 422 | public function getChartRank0() |
||
| 423 | { |
||
| 424 | return $this->chartRank0; |
||
| 425 | } |
||
| 426 | |||
| 427 | /** |
||
| 428 | * Set chartRank1 |
||
| 429 | * |
||
| 430 | * @param integer $chartRank1 |
||
| 431 | * @return Player |
||
| 432 | */ |
||
| 433 | public function setChartRank1($chartRank1) |
||
| 434 | { |
||
| 435 | $this->chartRank1 = $chartRank1; |
||
| 436 | |||
| 437 | return $this; |
||
| 438 | } |
||
| 439 | |||
| 440 | /** |
||
| 441 | * Get chartRank1 |
||
| 442 | * |
||
| 443 | * @return integer |
||
| 444 | */ |
||
| 445 | public function getChartRank1() |
||
| 446 | { |
||
| 447 | return $this->chartRank1; |
||
| 448 | } |
||
| 449 | |||
| 450 | /** |
||
| 451 | * Set chartRank2 |
||
| 452 | * |
||
| 453 | * @param integer $chartRank2 |
||
| 454 | * @return Player |
||
| 455 | */ |
||
| 456 | public function setChartRank2($chartRank2) |
||
| 457 | { |
||
| 458 | $this->chartRank2 = $chartRank2; |
||
| 459 | |||
| 460 | return $this; |
||
| 461 | } |
||
| 462 | |||
| 463 | /** |
||
| 464 | * Get chartRank2 |
||
| 465 | * |
||
| 466 | * @return integer |
||
| 467 | */ |
||
| 468 | public function getChartRank2() |
||
| 469 | { |
||
| 470 | return $this->chartRank2; |
||
| 471 | } |
||
| 472 | |||
| 473 | /** |
||
| 474 | * Set chartRank3 |
||
| 475 | * |
||
| 476 | * @param integer $chartRank3 |
||
| 477 | * @return Player |
||
| 478 | */ |
||
| 479 | public function setChartRank3($chartRank3) |
||
| 480 | { |
||
| 481 | $this->chartRank3 = $chartRank3; |
||
| 482 | |||
| 483 | return $this; |
||
| 484 | } |
||
| 485 | |||
| 486 | /** |
||
| 487 | * Get chartRank3 |
||
| 488 | * |
||
| 489 | * @return integer |
||
| 490 | */ |
||
| 491 | public function getChartRank3() |
||
| 492 | { |
||
| 493 | return $this->chartRank3; |
||
| 494 | } |
||
| 495 | |||
| 496 | /** |
||
| 497 | * Set pointChart |
||
| 498 | * |
||
| 499 | * @param integer $pointChart |
||
| 500 | * @return Player |
||
| 501 | */ |
||
| 502 | public function setPointChart($pointChart) |
||
| 503 | { |
||
| 504 | $this->pointChart = $pointChart; |
||
| 505 | |||
| 506 | return $this; |
||
| 507 | } |
||
| 508 | |||
| 509 | /** |
||
| 510 | * Get pointChart |
||
| 511 | * |
||
| 512 | * @return integer |
||
| 513 | */ |
||
| 514 | public function getPointChart() |
||
| 515 | { |
||
| 516 | return $this->pointChart; |
||
| 517 | } |
||
| 518 | |||
| 519 | /** |
||
| 520 | * Set pointVGR |
||
| 521 | * |
||
| 522 | * @param integer $pointVGR |
||
| 523 | * @return Player |
||
| 524 | */ |
||
| 525 | public function setPointVGR($pointVGR) |
||
| 526 | { |
||
| 527 | $this->pointVGR = $pointVGR; |
||
| 528 | |||
| 529 | return $this; |
||
| 530 | } |
||
| 531 | |||
| 532 | /** |
||
| 533 | * Get pointVGR |
||
| 534 | * |
||
| 535 | * @return integer |
||
| 536 | */ |
||
| 537 | public function getPointVGR() |
||
| 538 | { |
||
| 539 | return $this->pointVGR; |
||
| 540 | } |
||
| 541 | |||
| 542 | /** |
||
| 543 | * Set pointBadge |
||
| 544 | * |
||
| 545 | * @param integer $pointBadge |
||
| 546 | * @return Player |
||
| 547 | */ |
||
| 548 | public function setPointBadge($pointBadge) |
||
| 549 | { |
||
| 550 | $this->pointBadge = $pointBadge; |
||
| 551 | |||
| 552 | return $this; |
||
| 553 | } |
||
| 554 | |||
| 555 | /** |
||
| 556 | * Get pointBadge |
||
| 557 | * |
||
| 558 | * @return integer |
||
| 559 | */ |
||
| 560 | public function getPointBadge() |
||
| 563 | } |
||
| 564 | |||
| 565 | /** |
||
| 566 | * Set collection |
||
| 567 | * |
||
| 568 | * @param string $collection |
||
| 569 | * @return Player |
||
| 570 | */ |
||
| 571 | public function setCollection($collection) |
||
| 572 | { |
||
| 573 | $this->collection = $collection; |
||
| 574 | |||
| 575 | return $this; |
||
| 576 | } |
||
| 577 | |||
| 578 | /** |
||
| 579 | * Get collection |
||
| 580 | * |
||
| 581 | * @return string |
||
| 582 | */ |
||
| 583 | public function getCollection() |
||
| 584 | { |
||
| 585 | return $this->collection; |
||
| 586 | } |
||
| 587 | |||
| 588 | /** |
||
| 589 | * Set rankPointChart |
||
| 590 | * |
||
| 591 | * @param integer $rankPointChart |
||
| 592 | * @return Player |
||
| 593 | */ |
||
| 594 | public function setRankPointChart($rankPointChart) |
||
| 595 | { |
||
| 596 | $this->rankPointChart = $rankPointChart; |
||
| 597 | |||
| 598 | return $this; |
||
| 599 | } |
||
| 600 | |||
| 601 | /** |
||
| 602 | * Get rankPointChart |
||
| 603 | * |
||
| 604 | * @return integer |
||
| 605 | */ |
||
| 606 | public function getRankPointChart() |
||
| 607 | { |
||
| 608 | return $this->rankPointChart; |
||
| 609 | } |
||
| 610 | |||
| 611 | /** |
||
| 612 | * Set rankMedal |
||
| 613 | * |
||
| 614 | * @param integer $rankMedal |
||
| 615 | * @return Player |
||
| 616 | */ |
||
| 617 | public function setRankMedal($rankMedal) |
||
| 618 | { |
||
| 619 | $this->rankMedal = $rankMedal; |
||
| 620 | |||
| 621 | return $this; |
||
| 622 | } |
||
| 623 | |||
| 624 | /** |
||
| 625 | * Get rankMedal |
||
| 626 | * |
||
| 627 | * @return integer |
||
| 628 | */ |
||
| 629 | public function getRankMedal() |
||
| 630 | { |
||
| 631 | return $this->rankMedal; |
||
| 632 | } |
||
| 633 | |||
| 634 | /** |
||
| 635 | * Set rankProof |
||
| 636 | * |
||
| 637 | * @param integer $rankProof |
||
| 638 | * @return Player |
||
| 639 | */ |
||
| 640 | public function setRankProof($rankProof) |
||
| 641 | { |
||
| 642 | $this->rankProof = $rankProof; |
||
| 643 | |||
| 644 | return $this; |
||
| 645 | } |
||
| 646 | |||
| 647 | /** |
||
| 648 | * Get rankProof |
||
| 649 | * |
||
| 650 | * @return integer |
||
| 651 | */ |
||
| 652 | public function getRankProof() |
||
| 653 | { |
||
| 654 | return $this->rankProof; |
||
| 655 | } |
||
| 656 | |||
| 657 | /** |
||
| 658 | * Set rankBadge |
||
| 659 | * |
||
| 660 | * @param integer $rankBadge |
||
| 661 | * @return Player |
||
| 662 | */ |
||
| 663 | public function setRankBadge($rankBadge) |
||
| 664 | { |
||
| 665 | $this->rankBadge = $rankBadge; |
||
| 666 | |||
| 667 | return $this; |
||
| 668 | } |
||
| 669 | |||
| 670 | /** |
||
| 671 | * Get rankBadge |
||
| 672 | * |
||
| 673 | * @return integer |
||
| 674 | */ |
||
| 675 | public function getRankBadge() |
||
| 676 | { |
||
| 677 | return $this->rankBadge; |
||
| 678 | } |
||
| 679 | |||
| 680 | /** |
||
| 681 | * Set rankCup |
||
| 682 | * |
||
| 683 | * @param integer $rankCup |
||
| 684 | * @return Player |
||
| 685 | */ |
||
| 686 | public function setRankCup($rankCup) |
||
| 687 | { |
||
| 688 | $this->rankCup = $rankCup; |
||
| 689 | |||
| 690 | return $this; |
||
| 691 | } |
||
| 692 | |||
| 693 | /** |
||
| 694 | * Get rankCup |
||
| 695 | * |
||
| 696 | * @return integer |
||
| 697 | */ |
||
| 698 | public function getRankCup() |
||
| 699 | { |
||
| 700 | return $this->rankCup; |
||
| 701 | } |
||
| 702 | |||
| 703 | /** |
||
| 704 | * Set gameRank0 |
||
| 705 | * |
||
| 706 | * @param integer $gameRank0 |
||
| 707 | * @return Player |
||
| 708 | */ |
||
| 709 | public function setGameRank0($gameRank0) |
||
| 710 | { |
||
| 711 | $this->gameRank0 = $gameRank0; |
||
| 712 | |||
| 713 | return $this; |
||
| 714 | } |
||
| 715 | |||
| 716 | /** |
||
| 717 | * Get gameRank0 |
||
| 718 | * |
||
| 719 | * @return integer |
||
| 720 | */ |
||
| 721 | public function getgameRank0() |
||
| 722 | { |
||
| 723 | return $this->gameRank0; |
||
| 724 | } |
||
| 725 | |||
| 726 | /** |
||
| 727 | * Set gameRank1 |
||
| 728 | * |
||
| 729 | * @param integer $gameRank1 |
||
| 730 | * @return Player |
||
| 731 | */ |
||
| 732 | public function setGameRank1($gameRank1) |
||
| 733 | { |
||
| 734 | $this->gameRank1 = $gameRank1; |
||
| 735 | |||
| 736 | return $this; |
||
| 737 | } |
||
| 738 | |||
| 739 | /** |
||
| 740 | * Get gameRank1 |
||
| 741 | * |
||
| 742 | * @return integer |
||
| 743 | */ |
||
| 744 | public function getGameRank1() |
||
| 745 | { |
||
| 746 | return $this->gameRank1; |
||
| 747 | } |
||
| 748 | |||
| 749 | /** |
||
| 750 | * Set gameRank2 |
||
| 751 | * |
||
| 752 | * @param integer $gameRank2 |
||
| 753 | * @return Player |
||
| 754 | */ |
||
| 755 | public function setGameRank2($gameRank2) |
||
| 756 | { |
||
| 757 | $this->gameRank2 = $gameRank2; |
||
| 758 | |||
| 759 | return $this; |
||
| 760 | } |
||
| 761 | |||
| 762 | /** |
||
| 763 | * Get gameRank2 |
||
| 764 | * |
||
| 765 | * @return integer |
||
| 766 | */ |
||
| 767 | public function getGameRank2() |
||
| 768 | { |
||
| 769 | return $this->gameRank2; |
||
| 770 | } |
||
| 771 | |||
| 772 | /** |
||
| 773 | * Set gameRank3 |
||
| 774 | * |
||
| 775 | * @param integer $gameRank3 |
||
| 776 | * @return Player |
||
| 777 | */ |
||
| 778 | public function setGameRank3($gameRank3) |
||
| 779 | { |
||
| 780 | $this->gameRank3 = $gameRank3; |
||
| 781 | |||
| 782 | return $this; |
||
| 783 | } |
||
| 784 | |||
| 785 | /** |
||
| 786 | * Get gameRank3 |
||
| 787 | * |
||
| 788 | * @return integer |
||
| 789 | */ |
||
| 790 | public function getGameRank3() |
||
| 791 | { |
||
| 792 | return $this->gameRank3; |
||
| 793 | } |
||
| 794 | |||
| 795 | /** |
||
| 796 | * Set nbGame |
||
| 797 | * |
||
| 798 | * @param integer $nbGame |
||
| 799 | * @return Player |
||
| 800 | */ |
||
| 801 | public function setNbGame($nbGame) |
||
| 802 | { |
||
| 803 | $this->nbGame = $nbGame; |
||
| 804 | |||
| 805 | return $this; |
||
| 806 | } |
||
| 807 | |||
| 808 | /** |
||
| 809 | * Get nbGame |
||
| 810 | * |
||
| 811 | * @return integer |
||
| 812 | */ |
||
| 813 | public function getNbGame() |
||
| 814 | { |
||
| 815 | return $this->nbGame; |
||
| 816 | } |
||
| 817 | |||
| 818 | /** |
||
| 819 | * Set nbChart |
||
| 820 | * |
||
| 821 | * @param integer $nbChart |
||
| 822 | * @return Player |
||
| 823 | */ |
||
| 824 | public function setNbChart($nbChart) |
||
| 825 | { |
||
| 826 | $this->nbChart = $nbChart; |
||
| 827 | |||
| 828 | return $this; |
||
| 829 | } |
||
| 830 | |||
| 831 | /** |
||
| 832 | * Get nbChart |
||
| 833 | * |
||
| 834 | * @return integer |
||
| 835 | */ |
||
| 836 | public function getNbChart() |
||
| 837 | { |
||
| 838 | return $this->nbChart; |
||
| 839 | } |
||
| 840 | |||
| 841 | /** |
||
| 842 | * Set nbChartProven |
||
| 843 | * |
||
| 844 | * @param integer $nbChartProven |
||
| 845 | * @return Player |
||
| 846 | */ |
||
| 847 | public function setNbChartProven($nbChartProven) |
||
| 848 | { |
||
| 849 | $this->nbChartProven = $nbChartProven; |
||
| 850 | |||
| 851 | return $this; |
||
| 852 | } |
||
| 853 | |||
| 854 | /** |
||
| 855 | * Get nbChartProven |
||
| 856 | * |
||
| 857 | * @return integer |
||
| 858 | */ |
||
| 859 | public function getNbChartProven() |
||
| 860 | { |
||
| 861 | return $this->nbChartProven; |
||
| 862 | } |
||
| 863 | |||
| 864 | /** |
||
| 865 | * Set nbMasterBadge |
||
| 866 | * |
||
| 867 | * @param integer $nbMasterBadge |
||
| 868 | * @return Player |
||
| 869 | */ |
||
| 870 | public function setNbMasterBadge($nbMasterBadge) |
||
| 871 | { |
||
| 872 | $this->nbMasterBadge = $nbMasterBadge; |
||
| 873 | |||
| 874 | return $this; |
||
| 875 | } |
||
| 876 | |||
| 877 | /** |
||
| 878 | * Get nbMasterBadge |
||
| 879 | * |
||
| 880 | * @return integer |
||
| 881 | */ |
||
| 882 | public function getNbMasterBadge() |
||
| 883 | { |
||
| 884 | return $this->nbMasterBadge; |
||
| 885 | } |
||
| 886 | |||
| 887 | /** |
||
| 888 | * Set pointGame |
||
| 889 | * |
||
| 890 | * @param integer $pointGame |
||
| 891 | * @return Player |
||
| 892 | */ |
||
| 893 | public function setPointGame($pointGame) |
||
| 894 | { |
||
| 895 | $this->pointGame = $pointGame; |
||
| 896 | |||
| 897 | return $this; |
||
| 898 | } |
||
| 899 | |||
| 900 | /** |
||
| 901 | * Get pointGame |
||
| 902 | * |
||
| 903 | * @return integer |
||
| 904 | */ |
||
| 905 | public function getPointGame() |
||
| 908 | } |
||
| 909 | |||
| 910 | /** |
||
| 911 | * Set rankPointGame |
||
| 912 | * |
||
| 913 | * @param integer $rankPointGame |
||
| 914 | * @return Player |
||
| 915 | */ |
||
| 916 | public function setRankPointGame($rankPointGame) |
||
| 917 | { |
||
| 918 | $this->rankPointGame = $rankPointGame; |
||
| 919 | |||
| 920 | return $this; |
||
| 921 | } |
||
| 922 | |||
| 923 | /** |
||
| 924 | * Get rankPointGame |
||
| 925 | * |
||
| 926 | * @return integer |
||
| 927 | */ |
||
| 928 | public function getRankPointGame() |
||
| 929 | { |
||
| 930 | return $this->rankPointGame; |
||
| 931 | } |
||
| 932 | |||
| 933 | /** |
||
| 934 | * @return \VideoGamesRecords\CoreBundle\Entity\UserInterface |
||
| 935 | */ |
||
| 936 | public function getNormandieUser() |
||
| 939 | } |
||
| 940 | |||
| 941 | /** |
||
| 942 | * @param \VideoGamesRecords\CoreBundle\Entity\UserInterface $normandieUser |
||
| 943 | * @return Player |
||
| 944 | */ |
||
| 945 | public function setNormandieUser($normandieUser) |
||
| 946 | { |
||
| 947 | $this->normandieUser = $normandieUser; |
||
| 948 | return $this; |
||
| 949 | } |
||
| 950 | |||
| 951 | /** |
||
| 952 | * @return mixed |
||
| 953 | */ |
||
| 954 | public function getPlayerGame() |
||
| 955 | { |
||
| 956 | return $this->playerGame; |
||
| 957 | } |
||
| 958 | |||
| 959 | /** |
||
| 960 | * @return mixed |
||
| 961 | */ |
||
| 962 | public function getPlayerBadge() |
||
| 965 | } |
||
| 966 | |||
| 967 | /** |
||
| 968 | * Set team |
||
| 969 | * @param Team $team |
||
| 970 | * @return Player |
||
| 971 | */ |
||
| 972 | public function setTeam(Team $team = null) |
||
| 973 | { |
||
| 974 | $this->team = $team; |
||
| 975 | |||
| 976 | return $this; |
||
| 977 | } |
||
| 978 | |||
| 979 | /** |
||
| 980 | * Get team |
||
| 981 | * @return Team |
||
| 982 | */ |
||
| 983 | public function getTeam() |
||
| 984 | { |
||
| 985 | return $this->team; |
||
| 986 | } |
||
| 987 | |||
| 988 | /** |
||
| 989 | * @return $this |
||
| 990 | */ |
||
| 991 | public function getPlayer() |
||
| 992 | { |
||
| 993 | return $this; |
||
| 994 | } |
||
| 995 | |||
| 996 | /** |
||
| 997 | * Returns an array of the fields used to generate the slug. |
||
| 998 | * |
||
| 999 | * @return array |
||
| 1000 | */ |
||
| 1001 | public function getSluggableFields() |
||
| 1004 | } |
||
| 1005 | |||
| 1006 | /** |
||
| 1007 | * @return bool |
||
| 1008 | */ |
||
| 1009 | public function isLeader() |
||
| 1010 | { |
||
| 1011 | return ($this->getTeam() !== null) && ($this->getTeam()->getIdLeader() === $this->getId()); |
||
| 1012 | } |
||
| 1013 | } |
||
| 1014 |
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