Skip to content

Commit dc71ef1

Browse files
committed
ENGCOM-4502: Static tests fix.
1 parent 418d22b commit dc71ef1

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

app/code/Magento/CatalogInventory/Model/Spi/StockRegistryProviderInterface.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,25 @@
1515
interface StockRegistryProviderInterface
1616
{
1717
/**
18+
* Get stock.
19+
*
1820
* @param int $scopeId
1921
* @return \Magento\CatalogInventory\Api\Data\StockInterface
2022
*/
2123
public function getStock($scopeId);
2224

2325
/**
26+
* Get stock item.
27+
*
2428
* @param int $productId
2529
* @param int $scopeId
2630
* @return \Magento\CatalogInventory\Api\Data\StockItemInterface
2731
*/
2832
public function getStockItem($productId, $scopeId);
2933

3034
/**
35+
* Get stock status.
36+
*
3137
* @param int $productId
3238
* @param int $scopeId
3339
* @return \Magento\CatalogInventory\Api\Data\StockStatusInterface

app/code/Magento/CatalogInventory/Model/Spi/StockStateProviderInterface.php

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,32 @@
99

1010
/**
1111
* Interface StockStateProviderInterface
12-
*
12+
*
1313
* @deprecated 2.3.0 Replaced with Multi Source Inventory
1414
* @link https://devdocs.magento.com/guides/v2.3/inventory/index.html
1515
* @link https://devdocs.magento.com/guides/v2.3/inventory/catalog-inventory-replacements.html
1616
*/
1717
interface StockStateProviderInterface
1818
{
1919
/**
20+
* Verify stock.
21+
*
2022
* @param StockItemInterface $stockItem
2123
* @return bool
2224
*/
2325
public function verifyStock(StockItemInterface $stockItem);
2426

2527
/**
28+
* Verify notification.
29+
*
2630
* @param StockItemInterface $stockItem
2731
* @return bool
2832
*/
2933
public function verifyNotification(StockItemInterface $stockItem);
3034

3135
/**
36+
* Validate quote qty.
37+
*
3238
* @param StockItemInterface $stockItem
3339
* @param int|float $itemQty
3440
* @param int|float $qtyToCheck
@@ -48,8 +54,9 @@ public function checkQuoteItemQty(StockItemInterface $stockItem, $itemQty, $qtyT
4854
public function checkQty(StockItemInterface $stockItem, $qty);
4955

5056
/**
51-
* Returns suggested qty that satisfies qty increments and minQty/maxQty/minSaleQty/maxSaleQty conditions
52-
* or original qty if such value does not exist
57+
* Returns suggested qty or original qty if such value does not exist.
58+
*
59+
* Suggested qty satisfies qty increments and minQty/maxQty/minSaleQty/maxSaleQty conditions.
5360
*
5461
* @param StockItemInterface $stockItem
5562
* @param int|float $qty
@@ -58,6 +65,8 @@ public function checkQty(StockItemInterface $stockItem, $qty);
5865
public function suggestQty(StockItemInterface $stockItem, $qty);
5966

6067
/**
68+
* Check qty increments.
69+
*
6170
* @param StockItemInterface $stockItem
6271
* @param int|float $qty
6372
* @return \Magento\Framework\DataObject

0 commit comments

Comments
 (0)