Code Duplication    Length = 13-13 lines in 2 locations

application/modules/mod_link/models/Base/PageLinkProduct.php 1 location

@@ 367-379 (lines=13) @@
364
     * @param int $v new value
365
     * @return $this|\mod_link\models\PageLinkProduct The current object (for fluent API support)
366
     */
367
    public function setProductId($v)
368
    {
369
        if ($v !== null) {
370
            $v = (int) $v;
371
        }
372
373
        if ($this->product_id !== $v) {
374
            $this->product_id = $v;
375
            $this->modifiedColumns[PageLinkProductTableMap::COL_PRODUCT_ID] = true;
376
        }
377
378
        return $this;
379
    } // setProductId()
380
381
    /**
382
     * Indicates whether the columns in this object are only set to default values.

application/modules/mod_link/models/Base/PageLinkProducts.php 1 location

@@ 367-379 (lines=13) @@
364
     * @param int $v new value
365
     * @return $this|\mod_link\models\PageLinkProducts The current object (for fluent API support)
366
     */
367
    public function setProductId($v)
368
    {
369
        if ($v !== null) {
370
            $v = (int) $v;
371
        }
372
373
        if ($this->product_id !== $v) {
374
            $this->product_id = $v;
375
            $this->modifiedColumns[PageLinkProductsTableMap::COL_PRODUCT_ID] = true;
376
        }
377
378
        return $this;
379
    } // setProductId()
380
381
    /**
382
     * Indicates whether the columns in this object are only set to default values.