GetAssignedStockIdForWebsiteInterface.php 492 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Magento\InventorySalesApi\Model;
  8. /**
  9. * Get assigned Stock id for Website (Service Provider Interface - SPI)
  10. *
  11. * @api
  12. */
  13. interface GetAssignedStockIdForWebsiteInterface
  14. {
  15. /**
  16. * Get assigned stock to website
  17. *
  18. * @param string $websiteCode
  19. * @return int|null
  20. */
  21. public function execute(string $websiteCode): ?int;
  22. }