File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed
app/code/Magento/CatalogInventory/Model/ResourceModel/Stock/Status Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -24,31 +24,43 @@ public function __construct($mapper = '')
24
24
}
25
25
26
26
/**
27
- * @inheritdoc
27
+ * Filter by scope(s)
28
+ *
29
+ * @param int $scope
30
+ * @return void
28
31
*/
29
32
public function setScopeFilter ($ scope )
30
33
{
31
34
$ this ->data ['website_filter ' ] = [$ scope ];
32
35
}
33
36
34
37
/**
35
- * @inheritdoc
38
+ * Add product(s) filter
39
+ *
40
+ * @param int $products
41
+ * @return void
36
42
*/
37
43
public function setProductsFilter ($ products )
38
44
{
39
45
$ this ->data ['products_filter ' ] = [$ products ];
40
46
}
41
47
42
48
/**
43
- * @inheritdoc
49
+ * Add filter by quantity
50
+ *
51
+ * @param float $qty
52
+ * @return void
44
53
*/
45
54
public function setQtyFilter ($ qty )
46
55
{
47
56
$ this ->data ['qty_filter ' ] = [$ qty ];
48
57
}
49
58
50
59
/**
51
- * @inheritdoc
60
+ * Add Criteria object
61
+ *
62
+ * @param \Magento\CatalogInventory\Api\StockStatusCriteriaInterface $criteria
63
+ * @return void
52
64
*/
53
65
public function addCriteria (StockStatusCriteriaInterface $ criteria )
54
66
{
You can’t perform that action at this time.
0 commit comments