SourceSelectionAlgorithmInterface.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. * Data Interface representing particular Source Selection Algorithm
  10. *
  11. * @api
  12. */
  13. interface SourceSelectionAlgorithmInterface extends \Magento\Framework\Api\ExtensibleDataInterface
  14. {
  15. /**
  16. * @return string
  17. */
  18. public function getCode(): string;
  19. /**
  20. * @return string
  21. */
  22. public function getTitle(): string;
  23. /**
  24. * @return string
  25. */
  26. public function getDescription(): string;
  27. /**
  28. * Retrieve existing extension attributes object
  29. *
  30. * @return \Magento\InventorySourceSelectionApi\Api\Data\SourceSelectionAlgorithmExtensionInterface|null
  31. */
  32. public function getExtensionAttributes(): ?SourceSelectionAlgorithmExtensionInterface;
  33. /**
  34. * Set an extension attributes object
  35. *
  36. * @codingStandardsIgnoreStart
  37. * @param \Magento\InventorySourceSelectionApi\Api\Data\SourceSelectionAlgorithmExtensionInterface $extensionAttributes
  38. * @codingStandardsIgnoreEnd
  39. * @return void
  40. */
  41. public function setExtensionAttributes(
  42. \Magento\InventorySourceSelectionApi\Api\Data\SourceSelectionAlgorithmExtensionInterface $extensionAttributes
  43. ): void;
  44. }