StockIndexInterface.php 685 B

123456789101112131415161718192021222324252627
  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 StockIndexInterface
  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 StockIndexInterface
  17. {
  18. /**
  19. * Rebuild stock index of the given scope
  20. *
  21. * @param int $productId
  22. * @param int $scopeId
  23. * @return bool
  24. */
  25. public function rebuild($productId = null, $scopeId = null);
  26. }