SourceSelectionInterface.php 787 B

1234567891011121314151617181920212223242526
  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\InventorySourceSelectionApi\Model;
  8. use Magento\InventorySourceSelectionApi\Api\Data\InventoryRequestInterface;
  9. use Magento\InventorySourceSelectionApi\Api\Data\SourceSelectionResultInterface;
  10. /**
  11. * Returns source selection algorithm result for given Inventory Request
  12. * Current interface should be implemented in order to add own Source Selection Method
  13. *
  14. * @api
  15. */
  16. interface SourceSelectionInterface
  17. {
  18. /**
  19. * @param InventoryRequestInterface $inventoryRequest
  20. * @return SourceSelectionResultInterface
  21. */
  22. public function execute(InventoryRequestInterface $inventoryRequest): SourceSelectionResultInterface;
  23. }