Code Duplication    Length = 13-13 lines in 5 locations

src/cli/Database/Base/Input.php 1 location

@@ 456-468 (lines=13) @@
453
     * @param string $v new value
454
     * @return $this|\Jalle19\StatusManager\Database\Input The current object (for fluent API support)
455
     */
456
    public function setUuid($v)
457
    {
458
        if ($v !== null) {
459
            $v = (string) $v;
460
        }
461
462
        if ($this->uuid !== $v) {
463
            $this->uuid = $v;
464
            $this->modifiedColumns[InputTableMap::COL_UUID] = true;
465
        }
466
467
        return $this;
468
    } // setUuid()
469
470
    /**
471
     * Set the value of [instance_name] column.

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

@@ 521-533 (lines=13) @@
518
     * @param int $v new value
519
     * @return $this|\Jalle19\StatusManager\Database\Subscription The current object (for fluent API support)
520
     */
521
    public function setId($v)
522
    {
523
        if ($v !== null) {
524
            $v = (int) $v;
525
        }
526
527
        if ($this->id !== $v) {
528
            $this->id = $v;
529
            $this->modifiedColumns[SubscriptionTableMap::COL_ID] = true;
530
        }
531
532
        return $this;
533
    } // setId()
534
535
    /**
536
     * Set the value of [instance_name] column.
@@ 637-649 (lines=13) @@
634
     * @param int $v new value
635
     * @return $this|\Jalle19\StatusManager\Database\Subscription The current object (for fluent API support)
636
     */
637
    public function setSubscriptionId($v)
638
    {
639
        if ($v !== null) {
640
            $v = (int) $v;
641
        }
642
643
        if ($this->subscription_id !== $v) {
644
            $this->subscription_id = $v;
645
            $this->modifiedColumns[SubscriptionTableMap::COL_SUBSCRIPTION_ID] = true;
646
        }
647
648
        return $this;
649
    } // setSubscriptionId()
650
651
    /**
652
     * Sets the value of [started] column to a normalized version of the date/time value specified.
@@ 697-709 (lines=13) @@
694
     * @param string $v new value
695
     * @return $this|\Jalle19\StatusManager\Database\Subscription The current object (for fluent API support)
696
     */
697
    public function setTitle($v)
698
    {
699
        if ($v !== null) {
700
            $v = (string) $v;
701
        }
702
703
        if ($this->title !== $v) {
704
            $this->title = $v;
705
            $this->modifiedColumns[SubscriptionTableMap::COL_TITLE] = true;
706
        }
707
708
        return $this;
709
    } // setTitle()
710
711
    /**
712
     * Set the value of [service] column.
@@ 717-729 (lines=13) @@
714
     * @param string $v new value
715
     * @return $this|\Jalle19\StatusManager\Database\Subscription The current object (for fluent API support)
716
     */
717
    public function setService($v)
718
    {
719
        if ($v !== null) {
720
            $v = (string) $v;
721
        }
722
723
        if ($this->service !== $v) {
724
            $this->service = $v;
725
            $this->modifiedColumns[SubscriptionTableMap::COL_SERVICE] = true;
726
        }
727
728
        return $this;
729
    } // setService()
730
731
    /**
732
     * Indicates whether the columns in this object are only set to default values.