Code Duplication    Length = 13-13 lines in 4 locations

src/cli/Database/Base/Subscription.php 4 locations

@@ 497-509 (lines=13) @@
494
     * @param int $v new value
495
     * @return $this|\Jalle19\StatusManager\Database\Subscription The current object (for fluent API support)
496
     */
497
    public function setId($v)
498
    {
499
        if ($v !== null) {
500
            $v = (int) $v;
501
        }
502
503
        if ($this->id !== $v) {
504
            $this->id = $v;
505
            $this->modifiedColumns[SubscriptionTableMap::COL_ID] = true;
506
        }
507
508
        return $this;
509
    } // setId()
510
511
    /**
512
     * Set the value of [instance_name] column.
@@ 589-601 (lines=13) @@
586
     * @param int $v new value
587
     * @return $this|\Jalle19\StatusManager\Database\Subscription The current object (for fluent API support)
588
     */
589
    public function setSubscriptionId($v)
590
    {
591
        if ($v !== null) {
592
            $v = (int) $v;
593
        }
594
595
        if ($this->subscription_id !== $v) {
596
            $this->subscription_id = $v;
597
            $this->modifiedColumns[SubscriptionTableMap::COL_SUBSCRIPTION_ID] = true;
598
        }
599
600
        return $this;
601
    } // setSubscriptionId()
602
603
    /**
604
     * Sets the value of [started] column to a normalized version of the date/time value specified.
@@ 649-661 (lines=13) @@
646
     * @param string $v new value
647
     * @return $this|\Jalle19\StatusManager\Database\Subscription The current object (for fluent API support)
648
     */
649
    public function setTitle($v)
650
    {
651
        if ($v !== null) {
652
            $v = (string) $v;
653
        }
654
655
        if ($this->title !== $v) {
656
            $this->title = $v;
657
            $this->modifiedColumns[SubscriptionTableMap::COL_TITLE] = true;
658
        }
659
660
        return $this;
661
    } // setTitle()
662
663
    /**
664
     * Set the value of [service] column.
@@ 669-681 (lines=13) @@
666
     * @param string $v new value
667
     * @return $this|\Jalle19\StatusManager\Database\Subscription The current object (for fluent API support)
668
     */
669
    public function setService($v)
670
    {
671
        if ($v !== null) {
672
            $v = (string) $v;
673
        }
674
675
        if ($this->service !== $v) {
676
            $this->service = $v;
677
            $this->modifiedColumns[SubscriptionTableMap::COL_SERVICE] = true;
678
        }
679
680
        return $this;
681
    } // setService()
682
683
    /**
684
     * Indicates whether the columns in this object are only set to default values.