Code Duplication    Length = 13-13 lines in 6 locations

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

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

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

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