Code Duplication    Length = 13-13 lines in 7 locations

src/eXpansion/Framework/PlayersBundle/Model/Base/Player.php 7 locations

@@ 467-479 (lines=13) @@
464
     * @param int $v new value
465
     * @return $this|\eXpansion\Framework\PlayersBundle\Model\Player The current object (for fluent API support)
466
     */
467
    public function setId($v)
468
    {
469
        if ($v !== null) {
470
            $v = (int) $v;
471
        }
472
473
        if ($this->id !== $v) {
474
            $this->id = $v;
475
            $this->modifiedColumns[PlayerTableMap::COL_ID] = true;
476
        }
477
478
        return $this;
479
    } // setId()
480
481
    /**
482
     * Set the value of [login] column.
@@ 487-499 (lines=13) @@
484
     * @param string $v new value
485
     * @return $this|\eXpansion\Framework\PlayersBundle\Model\Player The current object (for fluent API support)
486
     */
487
    public function setLogin($v)
488
    {
489
        if ($v !== null) {
490
            $v = (string) $v;
491
        }
492
493
        if ($this->login !== $v) {
494
            $this->login = $v;
495
            $this->modifiedColumns[PlayerTableMap::COL_LOGIN] = true;
496
        }
497
498
        return $this;
499
    } // setLogin()
500
501
    /**
502
     * Set the value of [nickname] column.
@@ 507-519 (lines=13) @@
504
     * @param string $v new value
505
     * @return $this|\eXpansion\Framework\PlayersBundle\Model\Player The current object (for fluent API support)
506
     */
507
    public function setNickname($v)
508
    {
509
        if ($v !== null) {
510
            $v = (string) $v;
511
        }
512
513
        if ($this->nickname !== $v) {
514
            $this->nickname = $v;
515
            $this->modifiedColumns[PlayerTableMap::COL_NICKNAME] = true;
516
        }
517
518
        return $this;
519
    } // setNickname()
520
521
    /**
522
     * Set the value of [nickname_stripped] column.
@@ 527-539 (lines=13) @@
524
     * @param string $v new value
525
     * @return $this|\eXpansion\Framework\PlayersBundle\Model\Player The current object (for fluent API support)
526
     */
527
    public function setNicknameStripped($v)
528
    {
529
        if ($v !== null) {
530
            $v = (string) $v;
531
        }
532
533
        if ($this->nickname_stripped !== $v) {
534
            $this->nickname_stripped = $v;
535
            $this->modifiedColumns[PlayerTableMap::COL_NICKNAME_STRIPPED] = true;
536
        }
537
538
        return $this;
539
    } // setNicknameStripped()
540
541
    /**
542
     * Set the value of [path] column.
@@ 547-559 (lines=13) @@
544
     * @param string $v new value
545
     * @return $this|\eXpansion\Framework\PlayersBundle\Model\Player The current object (for fluent API support)
546
     */
547
    public function setPath($v)
548
    {
549
        if ($v !== null) {
550
            $v = (string) $v;
551
        }
552
553
        if ($this->path !== $v) {
554
            $this->path = $v;
555
            $this->modifiedColumns[PlayerTableMap::COL_PATH] = true;
556
        }
557
558
        return $this;
559
    } // setPath()
560
561
    /**
562
     * Set the value of [wins] column.
@@ 567-579 (lines=13) @@
564
     * @param int $v new value
565
     * @return $this|\eXpansion\Framework\PlayersBundle\Model\Player The current object (for fluent API support)
566
     */
567
    public function setWins($v)
568
    {
569
        if ($v !== null) {
570
            $v = (int) $v;
571
        }
572
573
        if ($this->wins !== $v) {
574
            $this->wins = $v;
575
            $this->modifiedColumns[PlayerTableMap::COL_WINS] = true;
576
        }
577
578
        return $this;
579
    } // setWins()
580
581
    /**
582
     * Set the value of [online_time] column.
@@ 587-599 (lines=13) @@
584
     * @param int $v new value
585
     * @return $this|\eXpansion\Framework\PlayersBundle\Model\Player The current object (for fluent API support)
586
     */
587
    public function setOnlineTime($v)
588
    {
589
        if ($v !== null) {
590
            $v = (int) $v;
591
        }
592
593
        if ($this->online_time !== $v) {
594
            $this->online_time = $v;
595
            $this->modifiedColumns[PlayerTableMap::COL_ONLINE_TIME] = true;
596
        }
597
598
        return $this;
599
    } // setOnlineTime()
600
601
    /**
602
     * Sets the value of [last_online] column to a normalized version of the date/time value specified.