@@ -72,6 +72,8 @@ protected function _construct()
72
72
//@codeCoverageIgnoreStart
73
73
74
74
/**
75
+ * Retrieve product ID
76
+ *
75
77
* @return int
76
78
*/
77
79
public function getProductId ()
@@ -80,6 +82,8 @@ public function getProductId()
80
82
}
81
83
82
84
/**
85
+ * Retrieve website ID
86
+ *
83
87
* @return int
84
88
*/
85
89
public function getWebsiteId ()
@@ -88,6 +92,8 @@ public function getWebsiteId()
88
92
}
89
93
90
94
/**
95
+ * Retrieve stock ID
96
+ *
91
97
* @return int
92
98
*/
93
99
public function getStockId ()
@@ -96,6 +102,8 @@ public function getStockId()
96
102
}
97
103
98
104
/**
105
+ * Retrieve qty
106
+ *
99
107
* @return int
100
108
*/
101
109
public function getQty ()
@@ -104,6 +112,8 @@ public function getQty()
104
112
}
105
113
106
114
/**
115
+ * Retrieve stock status
116
+ *
107
117
* @return int
108
118
*/
109
119
public function getStockStatus (): int
@@ -114,6 +124,8 @@ public function getStockStatus(): int
114
124
//@codeCoverageIgnoreEnd
115
125
116
126
/**
127
+ * Retrieve stock item
128
+ *
117
129
* @return StockItemInterface
118
130
*/
119
131
public function getStockItem ()
@@ -124,6 +136,8 @@ public function getStockItem()
124
136
//@codeCoverageIgnoreStart
125
137
126
138
/**
139
+ * Set product ID
140
+ *
127
141
* @param int $productId
128
142
* @return $this
129
143
*/
@@ -133,6 +147,8 @@ public function setProductId($productId)
133
147
}
134
148
135
149
/**
150
+ * Set web website ID
151
+ *
136
152
* @param int $websiteId
137
153
* @return $this
138
154
*/
@@ -142,6 +158,8 @@ public function setWebsiteId($websiteId)
142
158
}
143
159
144
160
/**
161
+ * Set stock ID
162
+ *
145
163
* @param int $stockId
146
164
* @return $this
147
165
*/
@@ -151,6 +169,8 @@ public function setStockId($stockId)
151
169
}
152
170
153
171
/**
172
+ * Set qty
173
+ *
154
174
* @param int $qty
155
175
* @return $this
156
176
*/
@@ -160,6 +180,8 @@ public function setQty($qty)
160
180
}
161
181
162
182
/**
183
+ * Set stock status
184
+ *
163
185
* @param int $stockStatus
164
186
* @return $this
165
187
*/
@@ -169,7 +191,7 @@ public function setStockStatus($stockStatus)
169
191
}
170
192
171
193
/**
172
- * {@inheritdoc}
194
+ * Retrieve existing extension attributes object or create a new one.
173
195
*
174
196
* @return \Magento\CatalogInventory\Api\Data\StockStatusExtensionInterface|null
175
197
*/
@@ -179,7 +201,7 @@ public function getExtensionAttributes()
179
201
}
180
202
181
203
/**
182
- * {@inheritdoc}
204
+ * Set an extension attributes object.
183
205
*
184
206
* @param \Magento\CatalogInventory\Api\Data\StockStatusExtensionInterface $extensionAttributes
185
207
* @return $this
0 commit comments