Skip to content

Commit 8c2674d

Browse files
author
Yu Tang
committed
MAGETWO-33661: Refactor CatalogInventory module to use mutable data object interfaces
- Fix annotations
1 parent 8941aac commit 8c2674d

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

app/code/Magento/CatalogInventory/Api/Data/StockItemInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public function setMinSaleQty($minSaleQty);
210210
public function getUseConfigMaxSaleQty();
211211

212212
/**
213-
* @param $useConfigMaxSaleQty
213+
* @param bool $useConfigMaxSaleQty
214214
* @return $this
215215
*/
216216
public function setUseConfigMaxSaleQty($useConfigMaxSaleQty);

app/code/Magento/CatalogInventory/Api/Data/StockStatusInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function getWebsiteId();
4242

4343
/**
4444
* @param int $websiteId
45-
* @return int
45+
* @return $this
4646
*/
4747
public function setWebsiteId($websiteId);
4848

@@ -75,7 +75,7 @@ public function getStockStatus();
7575

7676
/**
7777
* @param int $stockStatus
78-
* @return int
78+
* @return $this
7979
*/
8080
public function setStockStatus($stockStatus);
8181

app/code/Magento/CatalogInventory/Model/Stock/Item.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ public function setMinSaleQty($minSaleQty)
663663
}
664664

665665
/**
666-
* @param $useConfigMaxSaleQty
666+
* @param bool $useConfigMaxSaleQty
667667
* @return $this
668668
*/
669669
public function setUseConfigMaxSaleQty($useConfigMaxSaleQty)

app/code/Magento/CatalogInventory/Model/Stock/Status.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function setProductId($productId)
139139

140140
/**
141141
* @param int $websiteId
142-
* @return int
142+
* @return $this
143143
*/
144144
public function setWebsiteId($websiteId)
145145
{
@@ -166,7 +166,7 @@ public function setQty($qty)
166166

167167
/**
168168
* @param int $stockStatus
169-
* @return int
169+
* @return $this
170170
*/
171171
public function setStockStatus($stockStatus)
172172
{

0 commit comments

Comments
 (0)