Code Duplication    Length = 119-119 lines in 2 locations

Model/OrderedItem.php 1 location

@@ 11-129 (lines=119) @@
8
/**
9
 * Class OrderedItem
10
 */
11
class OrderedItem extends AbstractModel
12
{
13
    /**
14
     * @return mixed
15
     */
16
    public function getOrderId()
17
    {
18
        return $this->getData('order_id');
19
    }
20
21
    /**
22
     * @param string $orderId
23
     */
24
    public function setOrderId($orderId)
25
    {
26
        $this->setData('order_id', $orderId);
27
    }
28
29
    /**
30
     * @return mixed
31
     */
32
    public function getOrderItemId()
33
    {
34
        return $this->getData('order_item_id');
35
    }
36
37
    /**
38
     * @param string $orderItemId
39
     */
40
    public function setOrderItemId($orderItemId)
41
    {
42
        $this->setData('order_item_id', $orderItemId);
43
    }
44
45
    /**
46
     * @return mixed
47
     */
48
    public function getProductId()
49
    {
50
        return $this->getData('product_id');
51
    }
52
53
    /**
54
     * @param string $productId
55
     */
56
    public function setProductId($productId)
57
    {
58
        $this->setData('product_id', $productId);
59
    }
60
61
    /**
62
     * @return mixed
63
     */
64
    public function getEan()
65
    {
66
        return $this->getData('ean');
67
    }
68
69
    /**
70
     * @param string $ean
71
     */
72
    public function setEan($ean)
73
    {
74
        $this->setData('ean', $ean);
75
    }
76
77
    /**
78
     * @return mixed
79
     */
80
    public function getAmount()
81
    {
82
        return $this->getData('amount');
83
    }
84
85
    /**
86
     * @param string $amount
87
     */
88
    public function setAmount($amount)
89
    {
90
        $this->setData('amount', $amount);
91
    }
92
93
    /**
94
     * @return mixed
95
     */
96
    public function getStockbaseGuid()
97
    {
98
        return $this->getData('stockbase_guid');
99
    }
100
101
    /**
102
     * @param string $stockbaseGuid
103
     */
104
    public function setStockbaseGuid($stockbaseGuid)
105
    {
106
        $this->setData('stockbase_guid', $stockbaseGuid);
107
    }
108
109
    /**
110
     * @return mixed
111
     */
112
    public function getCreatedAt()
113
    {
114
        return $this->getData('created_at');
115
    }
116
117
    /**
118
     * @param string $createdAt
119
     */
120
    public function setCreatedAt($createdAt)
121
    {
122
        $this->setData('created_at', $createdAt);
123
    }
124
125
    protected function _construct()
126
    {
127
        $this->_init(ResourceModel\OrderedItem::class);
128
    }
129
}
130

Model/StockItemReserve.php 1 location

@@ 11-129 (lines=119) @@
8
/**
9
 * Class StockItemReserve
10
 */
11
class StockItemReserve extends AbstractModel
12
{
13
    /**
14
     * @return mixed
15
     */
16
    public function getEan()
17
    {
18
        return $this->getData('ean');
19
    }
20
21
    /**
22
     * @param string $ean
23
     */
24
    public function setEan($ean)
25
    {
26
        $this->setData('ean', $ean);
27
    }
28
29
    /**
30
     * @return mixed
31
     */
32
    public function getAmount()
33
    {
34
        return $this->getData('amount');
35
    }
36
37
    /**
38
     * @param string $amount
39
     */
40
    public function setAmount($amount)
41
    {
42
        $this->setData('amount', $amount);
43
    }
44
45
    /**
46
     * @return mixed
47
     */
48
    public function getMagentoStockAmount()
49
    {
50
        return $this->getData('magento_stock_amount');
51
    }
52
53
    /**
54
     * @param string $magentoStockAmount
55
     */
56
    public function setMagentoStockAmount($magentoStockAmount)
57
    {
58
        $this->setData('magento_stock_amount', $magentoStockAmount);
59
    }
60
61
    /**
62
     * @return mixed
63
     */
64
    public function getQuoteItemId()
65
    {
66
        return $this->getData('quote_item_id');
67
    }
68
69
    /**
70
     * @param string $quoteItemId
71
     */
72
    public function setQuoteItemId($quoteItemId)
73
    {
74
        $this->setData('quote_item_id', $quoteItemId);
75
    }
76
77
    /**
78
     * @return mixed
79
     */
80
    public function getProductId()
81
    {
82
        return $this->getData('product_id');
83
    }
84
85
    /**
86
     * @param string $productId
87
     */
88
    public function setProductId($productId)
89
    {
90
        $this->setData('product_id', $productId);
91
    }
92
93
    /**
94
     * @return mixed
95
     */
96
    public function getOrderItemId()
97
    {
98
        return $this->getData('order_item_id');
99
    }
100
101
    /**
102
     * @param string $orderItemId
103
     */
104
    public function setOrderItemId($orderItemId)
105
    {
106
        $this->setData('order_item_id', $orderItemId);
107
    }
108
109
    /**
110
     * @return mixed
111
     */
112
    public function getCreatedAt()
113
    {
114
        return $this->getData('created_at');
115
    }
116
117
    /**
118
     * @param string $createdAt
119
     */
120
    public function setCreatedAt($createdAt)
121
    {
122
        $this->setData('created_at', $createdAt);
123
    }
124
125
    protected function _construct()
126
    {
127
        $this->_init(\Stockbase\Integration\Model\ResourceModel\StockItemReserve::class);
128
    }
129
}
130