Code Duplication    Length = 13-13 lines in 5 locations

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

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