SourceSelectionResultInterface.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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\Api\Data;
  8. /**
  9. * Result of how we will deduct product qty from different Sources
  10. *
  11. * @api
  12. */
  13. interface SourceSelectionResultInterface extends \Magento\Framework\Api\ExtensibleDataInterface
  14. {
  15. /**
  16. * @return \Magento\InventorySourceSelectionApi\Api\Data\SourceSelectionItemInterface[]
  17. */
  18. public function getSourceSelectionItems(): array;
  19. /**
  20. * @return bool
  21. */
  22. public function isShippable() : bool;
  23. /**
  24. * Retrieve existing extension attributes object
  25. *
  26. * @return \Magento\InventorySourceSelectionApi\Api\Data\SourceSelectionResultExtensionInterface|null
  27. */
  28. public function getExtensionAttributes(): ?SourceSelectionResultExtensionInterface;
  29. /**
  30. * Set an extension attributes object
  31. *
  32. * @param \Magento\InventorySourceSelectionApi\Api\Data\SourceSelectionResultExtensionInterface $extensionAttributes
  33. * @return void
  34. */
  35. public function setExtensionAttributes(
  36. \Magento\InventorySourceSelectionApi\Api\Data\SourceSelectionResultExtensionInterface $extensionAttributes
  37. ): void;
  38. }