StockManagementInterface.php 744 B

12345678910111213141516171819202122232425262728
  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 StockManagementInterface
  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 StockManagementInterface
  17. {
  18. /**
  19. * Get back to stock (when order is canceled or whatever else)
  20. *
  21. * @param int $productId
  22. * @param float $qty
  23. * @param int $scopeId
  24. * @return bool
  25. */
  26. public function backItemQty($productId, $qty, $scopeId = null);
  27. }