Code Duplication    Length = 17-17 lines in 9 locations

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

@@ 396-412 (lines=17) @@
393
     * @param string $v new value
394
     * @return $this|\Jalle19\StatusManager\Database\Channel The current object (for fluent API support)
395
     */
396
    public function setInstanceName($v)
397
    {
398
        if ($v !== null) {
399
            $v = (string) $v;
400
        }
401
402
        if ($this->instance_name !== $v) {
403
            $this->instance_name = $v;
404
            $this->modifiedColumns[ChannelTableMap::COL_INSTANCE_NAME] = true;
405
        }
406
407
        if ($this->aInstance !== null && $this->aInstance->getName() !== $v) {
408
            $this->aInstance = null;
409
        }
410
411
        return $this;
412
    } // setInstanceName()
413
414
    /**
415
     * Set the value of [name] column.

src/cli/Database/Base/Connection.php 2 locations

@@ 449-465 (lines=17) @@
446
     * @param string $v new value
447
     * @return $this|\Jalle19\StatusManager\Database\Connection The current object (for fluent API support)
448
     */
449
    public function setInstanceName($v)
450
    {
451
        if ($v !== null) {
452
            $v = (string) $v;
453
        }
454
455
        if ($this->instance_name !== $v) {
456
            $this->instance_name = $v;
457
            $this->modifiedColumns[ConnectionTableMap::COL_INSTANCE_NAME] = true;
458
        }
459
460
        if ($this->aInstance !== null && $this->aInstance->getName() !== $v) {
461
            $this->aInstance = null;
462
        }
463
464
        return $this;
465
    } // setInstanceName()
466
467
    /**
468
     * Set the value of [user_id] column.
@@ 473-489 (lines=17) @@
470
     * @param int $v new value
471
     * @return $this|\Jalle19\StatusManager\Database\Connection The current object (for fluent API support)
472
     */
473
    public function setUserId($v)
474
    {
475
        if ($v !== null) {
476
            $v = (int) $v;
477
        }
478
479
        if ($this->user_id !== $v) {
480
            $this->user_id = $v;
481
            $this->modifiedColumns[ConnectionTableMap::COL_USER_ID] = true;
482
        }
483
484
        if ($this->aUser !== null && $this->aUser->getId() !== $v) {
485
            $this->aUser = null;
486
        }
487
488
        return $this;
489
    } // setUserId()
490
491
    /**
492
     * Set the value of [peer] column.

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

@@ 411-427 (lines=17) @@
408
     * @param string $v new value
409
     * @return $this|\Jalle19\StatusManager\Database\User The current object (for fluent API support)
410
     */
411
    public function setInstanceName($v)
412
    {
413
        if ($v !== null) {
414
            $v = (string) $v;
415
        }
416
417
        if ($this->instance_name !== $v) {
418
            $this->instance_name = $v;
419
            $this->modifiedColumns[UserTableMap::COL_INSTANCE_NAME] = true;
420
        }
421
422
        if ($this->aInstance !== null && $this->aInstance->getName() !== $v) {
423
            $this->aInstance = null;
424
        }
425
426
        return $this;
427
    } // setInstanceName()
428
429
    /**
430
     * Set the value of [name] column.

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

@@ 476-492 (lines=17) @@
473
     * @param string $v new value
474
     * @return $this|\Jalle19\StatusManager\Database\Input The current object (for fluent API support)
475
     */
476
    public function setInstanceName($v)
477
    {
478
        if ($v !== null) {
479
            $v = (string) $v;
480
        }
481
482
        if ($this->instance_name !== $v) {
483
            $this->instance_name = $v;
484
            $this->modifiedColumns[InputTableMap::COL_INSTANCE_NAME] = true;
485
        }
486
487
        if ($this->aInstance !== null && $this->aInstance->getName() !== $v) {
488
            $this->aInstance = null;
489
        }
490
491
        return $this;
492
    } // setInstanceName()
493
494
    /**
495
     * Sets the value of [started] column to a normalized version of the date/time value specified.

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

@@ 541-557 (lines=17) @@
538
     * @param string $v new value
539
     * @return $this|\Jalle19\StatusManager\Database\Subscription The current object (for fluent API support)
540
     */
541
    public function setInstanceName($v)
542
    {
543
        if ($v !== null) {
544
            $v = (string) $v;
545
        }
546
547
        if ($this->instance_name !== $v) {
548
            $this->instance_name = $v;
549
            $this->modifiedColumns[SubscriptionTableMap::COL_INSTANCE_NAME] = true;
550
        }
551
552
        if ($this->aInstance !== null && $this->aInstance->getName() !== $v) {
553
            $this->aInstance = null;
554
        }
555
556
        return $this;
557
    } // setInstanceName()
558
559
    /**
560
     * Set the value of [input_uuid] column.
@@ 565-581 (lines=17) @@
562
     * @param string $v new value
563
     * @return $this|\Jalle19\StatusManager\Database\Subscription The current object (for fluent API support)
564
     */
565
    public function setInputUuid($v)
566
    {
567
        if ($v !== null) {
568
            $v = (string) $v;
569
        }
570
571
        if ($this->input_uuid !== $v) {
572
            $this->input_uuid = $v;
573
            $this->modifiedColumns[SubscriptionTableMap::COL_INPUT_UUID] = true;
574
        }
575
576
        if ($this->aInput !== null && $this->aInput->getUuid() !== $v) {
577
            $this->aInput = null;
578
        }
579
580
        return $this;
581
    } // setInputUuid()
582
583
    /**
584
     * Set the value of [user_id] column.
@@ 589-605 (lines=17) @@
586
     * @param int $v new value
587
     * @return $this|\Jalle19\StatusManager\Database\Subscription The current object (for fluent API support)
588
     */
589
    public function setUserId($v)
590
    {
591
        if ($v !== null) {
592
            $v = (int) $v;
593
        }
594
595
        if ($this->user_id !== $v) {
596
            $this->user_id = $v;
597
            $this->modifiedColumns[SubscriptionTableMap::COL_USER_ID] = true;
598
        }
599
600
        if ($this->aUser !== null && $this->aUser->getId() !== $v) {
601
            $this->aUser = null;
602
        }
603
604
        return $this;
605
    } // setUserId()
606
607
    /**
608
     * Set the value of [channel_id] column.
@@ 613-629 (lines=17) @@
610
     * @param int $v new value
611
     * @return $this|\Jalle19\StatusManager\Database\Subscription The current object (for fluent API support)
612
     */
613
    public function setChannelId($v)
614
    {
615
        if ($v !== null) {
616
            $v = (int) $v;
617
        }
618
619
        if ($this->channel_id !== $v) {
620
            $this->channel_id = $v;
621
            $this->modifiedColumns[SubscriptionTableMap::COL_CHANNEL_ID] = true;
622
        }
623
624
        if ($this->aChannel !== null && $this->aChannel->getId() !== $v) {
625
            $this->aChannel = null;
626
        }
627
628
        return $this;
629
    } // setChannelId()
630
631
    /**
632
     * Set the value of [subscription_id] column.