StockStatusCriteriaInterface.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\CatalogInventory\Api;
  7. /**
  8. * Interface StockStatusCriteriaInterface
  9. * @api
  10. * @since 100.0.2
  11. *
  12. * @deprecated 100.3.0 Replaced with Multi Source Inventory
  13. * @link https://devdocs.magento.com/guides/v2.3/inventory/index.html
  14. * @link https://devdocs.magento.com/guides/v2.3/inventory/catalog-inventory-replacements.html
  15. */
  16. interface StockStatusCriteriaInterface extends \Magento\Framework\Api\CriteriaInterface
  17. {
  18. /**
  19. * Add Criteria object
  20. *
  21. * @param \Magento\CatalogInventory\Api\StockStatusCriteriaInterface $criteria
  22. * @return bool
  23. */
  24. public function addCriteria(\Magento\CatalogInventory\Api\StockStatusCriteriaInterface $criteria);
  25. /**
  26. * Filter by scope(s)
  27. *
  28. * @param int $scope
  29. * @return bool
  30. */
  31. public function setScopeFilter($scope);
  32. /**
  33. * Add product(s) filter
  34. *
  35. * @param int $products
  36. * @return bool
  37. */
  38. public function setProductsFilter($products);
  39. /**
  40. * Add filter by quantity
  41. *
  42. * @param float $qty
  43. * @return bool
  44. */
  45. public function setQtyFilter($qty);
  46. }