@@ -51,7 +51,7 @@ public function __construct(
51
51
* @param int $scopeId
52
52
* @return bool
53
53
*/
54
- public function verifyStock ($ productId , $ scopeId = null ): bool
54
+ public function verifyStock ($ productId , $ scopeId = null )
55
55
{
56
56
$ scopeId = $ this ->stockConfiguration ->getDefaultScopeId ();
57
57
$ stockItem = $ this ->stockRegistryProvider ->getStockItem ($ productId , $ scopeId );
@@ -64,7 +64,7 @@ public function verifyStock($productId, $scopeId = null): bool
64
64
* @param int $scopeId
65
65
* @return bool
66
66
*/
67
- public function verifyNotification ($ productId , $ scopeId = null ): bool
67
+ public function verifyNotification ($ productId , $ scopeId = null )
68
68
{
69
69
$ scopeId = $ this ->stockConfiguration ->getDefaultScopeId ();
70
70
$ stockItem = $ this ->stockRegistryProvider ->getStockItem ($ productId , $ scopeId );
@@ -78,9 +78,10 @@ public function verifyNotification($productId, $scopeId = null): bool
78
78
* @param int $productId
79
79
* @param float $qty
80
80
* @param int $scopeId
81
+ * @exception \Magento\Framework\Exception\LocalizedException
81
82
* @return bool
82
83
*/
83
- public function checkQty ($ productId , $ qty , $ scopeId = null ): bool
84
+ public function checkQty ($ productId , $ qty , $ scopeId = null )
84
85
{
85
86
$ scopeId = $ this ->stockConfiguration ->getDefaultScopeId ();
86
87
$ stockItem = $ this ->stockRegistryProvider ->getStockItem ($ productId , $ scopeId );
@@ -97,7 +98,7 @@ public function checkQty($productId, $qty, $scopeId = null): bool
97
98
* @param int $scopeId
98
99
* @return float
99
100
*/
100
- public function suggestQty ($ productId , $ qty , $ scopeId = null ): float
101
+ public function suggestQty ($ productId , $ qty , $ scopeId = null )
101
102
{
102
103
$ scopeId = $ this ->stockConfiguration ->getDefaultScopeId ();
103
104
$ stockItem = $ this ->stockRegistryProvider ->getStockItem ($ productId , $ scopeId );
@@ -112,7 +113,7 @@ public function suggestQty($productId, $qty, $scopeId = null): float
112
113
* @param int $scopeId
113
114
* @return float
114
115
*/
115
- public function getStockQty ($ productId , $ scopeId = null ): float
116
+ public function getStockQty ($ productId , $ scopeId = null )
116
117
{
117
118
$ scopeId = $ this ->stockConfiguration ->getDefaultScopeId ();
118
119
$ stockItem = $ this ->stockRegistryProvider ->getStockItem ($ productId , $ scopeId );
@@ -126,7 +127,7 @@ public function getStockQty($productId, $scopeId = null): float
126
127
* @param int $websiteId
127
128
* @return DataObject
128
129
*/
129
- public function checkQtyIncrements ($ productId , $ qty , $ websiteId = null ): DataObject
130
+ public function checkQtyIncrements ($ productId , $ qty , $ websiteId = null )
130
131
{
131
132
$ websiteId = $ this ->stockConfiguration ->getDefaultScopeId ();
132
133
$ stockItem = $ this ->stockRegistryProvider ->getStockItem ($ productId , $ websiteId );
@@ -142,7 +143,7 @@ public function checkQtyIncrements($productId, $qty, $websiteId = null): DataObj
142
143
* @param int $scopeId
143
144
* @return int
144
145
*/
145
- public function checkQuoteItemQty ($ productId , $ itemQty , $ qtyToCheck , $ origQty , $ scopeId = null ): int
146
+ public function checkQuoteItemQty ($ productId , $ itemQty , $ qtyToCheck , $ origQty , $ scopeId = null )
146
147
{
147
148
$ scopeId = $ this ->stockConfiguration ->getDefaultScopeId ();
148
149
$ stockItem = $ this ->stockRegistryProvider ->getStockItem ($ productId , $ scopeId );
0 commit comments