1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
|
4
|
|
|
namespace Stockbase\Integration\Model; |
5
|
|
|
|
6
|
|
|
use Magento\Framework\Model\AbstractModel; |
7
|
|
|
|
8
|
|
|
/** |
9
|
|
|
* Class StockItem |
10
|
|
|
*/ |
11
|
|
|
class StockItem extends AbstractModel |
12
|
|
|
{ |
13
|
|
|
/** |
14
|
|
|
* @return string |
15
|
|
|
*/ |
16
|
1 |
|
public function getEan() |
17
|
|
|
{ |
18
|
1 |
|
return $this->getId(); |
19
|
|
|
} |
20
|
|
|
|
21
|
|
|
/** |
22
|
|
|
* @param string $ean |
23
|
|
|
*/ |
24
|
1 |
|
public function setEan($ean) |
25
|
|
|
{ |
26
|
1 |
|
$this->setId($ean); |
27
|
1 |
|
} |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @return string |
31
|
|
|
*/ |
32
|
1 |
|
public function getBrand() |
33
|
|
|
{ |
34
|
1 |
|
return $this->getData('brand'); |
35
|
|
|
} |
36
|
|
|
|
37
|
|
|
/** |
38
|
|
|
* @param string $brand |
39
|
|
|
*/ |
40
|
1 |
|
public function setBrand($brand) |
41
|
|
|
{ |
42
|
1 |
|
$this->setData('brand', $brand); |
43
|
1 |
|
} |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* @return string |
47
|
|
|
*/ |
48
|
1 |
|
public function getCode() |
49
|
|
|
{ |
50
|
1 |
|
return $this->getData('code'); |
51
|
|
|
} |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @param string $code |
55
|
|
|
*/ |
56
|
1 |
|
public function setCode($code) |
57
|
|
|
{ |
58
|
1 |
|
$this->setData('code', $code); |
59
|
1 |
|
} |
60
|
|
|
|
61
|
|
|
/** |
62
|
|
|
* @return string |
63
|
|
|
*/ |
64
|
1 |
|
public function getSupplierCode() |
65
|
|
|
{ |
66
|
1 |
|
return $this->getData('supplier_code'); |
67
|
|
|
} |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* @param string $supplierCode |
71
|
|
|
*/ |
72
|
1 |
|
public function setSupplierCode($supplierCode) |
73
|
|
|
{ |
74
|
1 |
|
$this->setData('supplier_code', $supplierCode); |
75
|
1 |
|
} |
76
|
|
|
|
77
|
|
|
/** |
78
|
|
|
* @return string |
79
|
|
|
*/ |
80
|
1 |
|
public function getSupplierGln() |
81
|
|
|
{ |
82
|
1 |
|
return $this->getData('supplier_gln'); |
83
|
|
|
} |
84
|
|
|
|
85
|
|
|
/** |
86
|
|
|
* @param string $supplierGln |
87
|
|
|
*/ |
88
|
1 |
|
public function setSupplierGln($supplierGln) |
89
|
|
|
{ |
90
|
1 |
|
$this->setData('supplier_gln', $supplierGln); |
91
|
1 |
|
} |
92
|
|
|
|
93
|
|
|
/** |
94
|
|
|
* @return float |
95
|
|
|
*/ |
96
|
1 |
|
public function getAmount() |
97
|
|
|
{ |
98
|
1 |
|
return $this->getData('amount'); |
99
|
|
|
} |
100
|
|
|
|
101
|
|
|
/** |
102
|
|
|
* @param float $amount |
103
|
|
|
*/ |
104
|
1 |
|
public function setAmount($amount) |
105
|
|
|
{ |
106
|
1 |
|
$this->setData('amount', $amount); |
107
|
1 |
|
} |
108
|
|
|
|
109
|
|
|
/** |
110
|
|
|
* @return bool |
111
|
|
|
*/ |
112
|
1 |
|
public function getNoos() |
113
|
|
|
{ |
114
|
1 |
|
return $this->getData('noos'); |
115
|
|
|
} |
116
|
|
|
|
117
|
|
|
/** |
118
|
|
|
* @param bool $noos |
119
|
|
|
*/ |
120
|
1 |
|
public function setNoos($noos) |
121
|
|
|
{ |
122
|
1 |
|
$this->setData('noos', $noos); |
123
|
1 |
|
} |
124
|
|
|
|
125
|
|
|
/** |
126
|
|
|
* @return string |
127
|
|
|
*/ |
128
|
1 |
|
public function getTimestamp() |
129
|
|
|
{ |
130
|
1 |
|
return $this->getData('timestamp'); |
131
|
|
|
} |
132
|
|
|
|
133
|
|
|
/** |
134
|
|
|
* @param string $timestamp |
135
|
|
|
*/ |
136
|
1 |
|
public function setTimestamp($timestamp) |
137
|
|
|
{ |
138
|
1 |
|
$this->setData('timestamp', $timestamp); |
139
|
1 |
|
} |
140
|
|
|
|
141
|
8 |
|
protected function _construct() |
142
|
|
|
{ |
143
|
8 |
|
$this->_init(\Stockbase\Integration\Model\ResourceModel\StockItem::class); |
144
|
8 |
|
} |
145
|
|
|
} |
146
|
|
|
|