Code Duplication    Length = 13-13 lines in 6 locations

application/modules/xbanners/models/Base/BannerImageI18n.php 5 locations

@@ 448-460 (lines=13) @@
445
     * @param string $v new value
446
     * @return $this|\xbanners\models\BannerImageI18n The current object (for fluent API support)
447
     */
448
    public function setLocale($v)
449
    {
450
        if ($v !== null) {
451
            $v = (string) $v;
452
        }
453
454
        if ($this->locale !== $v) {
455
            $this->locale = $v;
456
            $this->modifiedColumns[BannerImageI18nTableMap::COL_LOCALE] = true;
457
        }
458
459
        return $this;
460
    } // setLocale()
461
462
    /**
463
     * Set the value of [src] column.
@@ 468-480 (lines=13) @@
465
     * @param string $v new value
466
     * @return $this|\xbanners\models\BannerImageI18n The current object (for fluent API support)
467
     */
468
    public function setSrc($v)
469
    {
470
        if ($v !== null) {
471
            $v = (string) $v;
472
        }
473
474
        if ($this->src !== $v) {
475
            $this->src = $v;
476
            $this->modifiedColumns[BannerImageI18nTableMap::COL_SRC] = true;
477
        }
478
479
        return $this;
480
    } // setSrc()
481
482
    /**
483
     * Set the value of [name] column.
@@ 488-500 (lines=13) @@
485
     * @param string $v new value
486
     * @return $this|\xbanners\models\BannerImageI18n The current object (for fluent API support)
487
     */
488
    public function setName($v)
489
    {
490
        if ($v !== null) {
491
            $v = (string) $v;
492
        }
493
494
        if ($this->name !== $v) {
495
            $this->name = $v;
496
            $this->modifiedColumns[BannerImageI18nTableMap::COL_NAME] = true;
497
        }
498
499
        return $this;
500
    } // setName()
501
502
    /**
503
     * Set the value of [clicks] column.
@@ 508-520 (lines=13) @@
505
     * @param int $v new value
506
     * @return $this|\xbanners\models\BannerImageI18n The current object (for fluent API support)
507
     */
508
    public function setClicks($v)
509
    {
510
        if ($v !== null) {
511
            $v = (int) $v;
512
        }
513
514
        if ($this->clicks !== $v) {
515
            $this->clicks = $v;
516
            $this->modifiedColumns[BannerImageI18nTableMap::COL_CLICKS] = true;
517
        }
518
519
        return $this;
520
    } // setClicks()
521
522
    /**
523
     * Set the value of [description] column.
@@ 528-540 (lines=13) @@
525
     * @param string $v new value
526
     * @return $this|\xbanners\models\BannerImageI18n The current object (for fluent API support)
527
     */
528
    public function setDescription($v)
529
    {
530
        if ($v !== null) {
531
            $v = (string) $v;
532
        }
533
534
        if ($this->description !== $v) {
535
            $this->description = $v;
536
            $this->modifiedColumns[BannerImageI18nTableMap::COL_DESCRIPTION] = true;
537
        }
538
539
        return $this;
540
    } // setDescription()
541
542
    /**
543
     * Indicates whether the columns in this object are only set to default values.

application/modules/xbanners/models/Base/BannersI18n.php 1 location

@@ 397-409 (lines=13) @@
394
     * @param string $v new value
395
     * @return $this|\xbanners\models\BannersI18n The current object (for fluent API support)
396
     */
397
    public function setLocale($v)
398
    {
399
        if ($v !== null) {
400
            $v = (string) $v;
401
        }
402
403
        if ($this->locale !== $v) {
404
            $this->locale = $v;
405
            $this->modifiedColumns[BannersI18nTableMap::COL_LOCALE] = true;
406
        }
407
408
        return $this;
409
    } // setLocale()
410
411
    /**
412
     * Set the value of [name] column.