Code Duplication    Length = 13-13 lines in 8 locations

app/Models/User/Base/User.php 5 locations

@@ 427-439 (lines=13) @@
424
     * @param int $v new value
425
     * @return $this|\Models\User\User The current object (for fluent API support)
426
     */
427
    public function setId($v)
428
    {
429
        if ($v !== null) {
430
            $v = (int) $v;
431
        }
432
433
        if ($this->id !== $v) {
434
            $this->id = $v;
435
            $this->modifiedColumns[UserTableMap::COL_ID] = true;
436
        }
437
438
        return $this;
439
    } // setId()
440
441
    /**
442
     * Set the value of [name] column.
@@ 447-459 (lines=13) @@
444
     * @param string $v new value
445
     * @return $this|\Models\User\User The current object (for fluent API support)
446
     */
447
    public function setName($v)
448
    {
449
        if ($v !== null) {
450
            $v = (string) $v;
451
        }
452
453
        if ($this->name !== $v) {
454
            $this->name = $v;
455
            $this->modifiedColumns[UserTableMap::COL_NAME] = true;
456
        }
457
458
        return $this;
459
    } // setName()
460
461
    /**
462
     * Set the value of [email] column.
@@ 467-479 (lines=13) @@
464
     * @param string $v new value
465
     * @return $this|\Models\User\User The current object (for fluent API support)
466
     */
467
    public function setEmail($v)
468
    {
469
        if ($v !== null) {
470
            $v = (string) $v;
471
        }
472
473
        if ($this->email !== $v) {
474
            $this->email = $v;
475
            $this->modifiedColumns[UserTableMap::COL_EMAIL] = true;
476
        }
477
478
        return $this;
479
    } // setEmail()
480
481
    /**
482
     * Set the value of [password] column.
@@ 487-499 (lines=13) @@
484
     * @param string $v new value
485
     * @return $this|\Models\User\User The current object (for fluent API support)
486
     */
487
    public function setPassword($v)
488
    {
489
        if ($v !== null) {
490
            $v = (string) $v;
491
        }
492
493
        if ($this->password !== $v) {
494
            $this->password = $v;
495
            $this->modifiedColumns[UserTableMap::COL_PASSWORD] = true;
496
        }
497
498
        return $this;
499
    } // setPassword()
500
501
    /**
502
     * Set the value of [remember_token] column.
@@ 507-519 (lines=13) @@
504
     * @param string $v new value
505
     * @return $this|\Models\User\User The current object (for fluent API support)
506
     */
507
    public function setRememberToken($v)
508
    {
509
        if ($v !== null) {
510
            $v = (string) $v;
511
        }
512
513
        if ($this->remember_token !== $v) {
514
            $this->remember_token = $v;
515
            $this->modifiedColumns[UserTableMap::COL_REMEMBER_TOKEN] = true;
516
        }
517
518
        return $this;
519
    } // setRememberToken()
520
521
    /**
522
     * Sets the value of [created_at] column to a normalized version of the date/time value specified.

packages/Price/Models/Selfprice/Base/Selfprice.php 3 locations

@@ 369-381 (lines=13) @@
366
     * @param int $v new value
367
     * @return $this|\Price\Models\Selfprice\Selfprice The current object (for fluent API support)
368
     */
369
    public function setId($v)
370
    {
371
        if ($v !== null) {
372
            $v = (int) $v;
373
        }
374
375
        if ($this->id !== $v) {
376
            $this->id = $v;
377
            $this->modifiedColumns[SelfpriceTableMap::COL_ID] = true;
378
        }
379
380
        return $this;
381
    } // setId()
382
383
    /**
384
     * Set the value of [name] column.
@@ 389-401 (lines=13) @@
386
     * @param string $v new value
387
     * @return $this|\Price\Models\Selfprice\Selfprice The current object (for fluent API support)
388
     */
389
    public function setName($v)
390
    {
391
        if ($v !== null) {
392
            $v = (string) $v;
393
        }
394
395
        if ($this->name !== $v) {
396
            $this->name = $v;
397
            $this->modifiedColumns[SelfpriceTableMap::COL_NAME] = true;
398
        }
399
400
        return $this;
401
    } // setName()
402
403
    /**
404
     * Sets the value of [datecreate] column to a normalized version of the date/time value specified.
@@ 429-441 (lines=13) @@
426
     * @param string $v new value
427
     * @return $this|\Price\Models\Selfprice\Selfprice The current object (for fluent API support)
428
     */
429
    public function setDesc($v)
430
    {
431
        if ($v !== null) {
432
            $v = (string) $v;
433
        }
434
435
        if ($this->desc !== $v) {
436
            $this->desc = $v;
437
            $this->modifiedColumns[SelfpriceTableMap::COL_DESC] = true;
438
        }
439
440
        return $this;
441
    } // setDesc()
442
443
    /**
444
     * Indicates whether the columns in this object are only set to default values.