1010use Magento \CatalogInventory \Api \Data \StockStatusInterface ;
1111use Magento \Framework \ObjectManager \ResetAfterRequestInterface ;
1212
13- /**
14- * Class StockRegistryStorage
15- */
1613class StockRegistryStorage implements ResetAfterRequestInterface
1714{
1815 /**
@@ -31,6 +28,7 @@ class StockRegistryStorage implements ResetAfterRequestInterface
3128 private $ stockStatuses = [];
3229
3330 /**
31+ *
3432 * @param int $scopeId
3533 * @return StockInterface
3634 */
@@ -40,6 +38,7 @@ public function getStock($scopeId)
4038 }
4139
4240 /**
41+ *
4342 * @param int $scopeId
4443 * @param StockInterface $value
4544 * @return void
@@ -50,6 +49,7 @@ public function setStock($scopeId, StockInterface $value)
5049 }
5150
5251 /**
52+ *
5353 * @param int|null $scopeId
5454 * @return void
5555 */
@@ -63,6 +63,7 @@ public function removeStock($scopeId = null)
6363 }
6464
6565 /**
66+ *
6667 * @param int $productId
6768 * @param int $scopeId
6869 * @return StockItemInterface
@@ -73,6 +74,7 @@ public function getStockItem($productId, $scopeId)
7374 }
7475
7576 /**
77+ *
7678 * @param int $productId
7779 * @param int $scopeId
7880 * @param StockItemInterface $value
@@ -84,6 +86,7 @@ public function setStockItem($productId, $scopeId, StockItemInterface $value)
8486 }
8587
8688 /**
89+ *
8790 * @param int $productId
8891 * @param int|null $scopeId
8992 * @return void
@@ -98,6 +101,7 @@ public function removeStockItem($productId, $scopeId = null)
98101 }
99102
100103 /**
104+ *
101105 * @param int $productId
102106 * @param int $scopeId
103107 * @return StockStatusInterface
@@ -108,6 +112,7 @@ public function getStockStatus($productId, $scopeId)
108112 }
109113
110114 /**
115+ *
111116 * @param int $productId
112117 * @param int $scopeId
113118 * @param StockStatusInterface $value
@@ -119,6 +124,7 @@ public function setStockStatus($productId, $scopeId, StockStatusInterface $value
119124 }
120125
121126 /**
127+ *
122128 * @param int $productId
123129 * @param int|null $scopeId
124130 * @return void
@@ -133,6 +139,7 @@ public function removeStockStatus($productId, $scopeId = null)
133139 }
134140
135141 /**
142+ *
136143 * Clear cached entities
137144 *
138145 * @return void
0 commit comments