Code Duplication    Length = 13-13 lines in 5 locations

packages/core/src/Models/User/Base/User.php 5 locations

@@ 455-467 (lines=13) @@
452
     * @param int $v new value
453
     * @return $this|\Core\Models\User\User The current object (for fluent API support)
454
     */
455
    public function setId($v)
456
    {
457
        if ($v !== null) {
458
            $v = (int) $v;
459
        }
460
461
        if ($this->id !== $v) {
462
            $this->id = $v;
463
            $this->modifiedColumns[UserTableMap::COL_ID] = true;
464
        }
465
466
        return $this;
467
    } // setId()
468
469
    /**
470
     * Set the value of [name] column.
@@ 475-487 (lines=13) @@
472
     * @param string $v new value
473
     * @return $this|\Core\Models\User\User The current object (for fluent API support)
474
     */
475
    public function setName($v)
476
    {
477
        if ($v !== null) {
478
            $v = (string) $v;
479
        }
480
481
        if ($this->name !== $v) {
482
            $this->name = $v;
483
            $this->modifiedColumns[UserTableMap::COL_NAME] = true;
484
        }
485
486
        return $this;
487
    } // setName()
488
489
    /**
490
     * Set the value of [email] column.
@@ 495-507 (lines=13) @@
492
     * @param string $v new value
493
     * @return $this|\Core\Models\User\User The current object (for fluent API support)
494
     */
495
    public function setEmail($v)
496
    {
497
        if ($v !== null) {
498
            $v = (string) $v;
499
        }
500
501
        if ($this->email !== $v) {
502
            $this->email = $v;
503
            $this->modifiedColumns[UserTableMap::COL_EMAIL] = true;
504
        }
505
506
        return $this;
507
    } // setEmail()
508
509
    /**
510
     * Set the value of [password] column.
@@ 515-527 (lines=13) @@
512
     * @param string $v new value
513
     * @return $this|\Core\Models\User\User The current object (for fluent API support)
514
     */
515
    public function setPassword($v)
516
    {
517
        if ($v !== null) {
518
            $v = (string) $v;
519
        }
520
521
        if ($this->password !== $v) {
522
            $this->password = $v;
523
            $this->modifiedColumns[UserTableMap::COL_PASSWORD] = true;
524
        }
525
526
        return $this;
527
    } // setPassword()
528
529
    /**
530
     * Set the value of [remember_token] column.
@@ 535-547 (lines=13) @@
532
     * @param string $v new value
533
     * @return $this|\Core\Models\User\User The current object (for fluent API support)
534
     */
535
    public function setRememberToken($v)
536
    {
537
        if ($v !== null) {
538
            $v = (string) $v;
539
        }
540
541
        if ($this->remember_token !== $v) {
542
            $this->remember_token = $v;
543
            $this->modifiedColumns[UserTableMap::COL_REMEMBER_TOKEN] = true;
544
        }
545
546
        return $this;
547
    } // setRememberToken()
548
549
    /**
550
     * Sets the value of [created_at] column to a normalized version of the date/time value specified.