StockCriteriaInterface.php 925 B

12345678910111213141516171819202122232425262728293031323334
  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 StockCriteriaInterface
  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 StockCriteriaInterface extends \Magento\Framework\Api\CriteriaInterface
  17. {
  18. /**
  19. * Add Criteria object
  20. *
  21. * @param \Magento\CatalogInventory\Api\StockCriteriaInterface $criteria
  22. * @return bool
  23. */
  24. public function addCriteria(\Magento\CatalogInventory\Api\StockCriteriaInterface $criteria);
  25. /**
  26. * Add scope filter to collection
  27. *
  28. * @param int $scope
  29. * @return bool
  30. */
  31. public function setScopeFilter($scope);
  32. }