StockExtensionInterface.php 778 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\InventoryApi\Api\Data;
  8. /**
  9. * TODO: temporal fix of extension classes generation during installation
  10. * ExtensionInterface class for @see \Magento\InventoryApi\Api\Data\StockInterface
  11. */
  12. interface StockExtensionInterface extends \Magento\Framework\Api\ExtensionAttributesInterface
  13. {
  14. /**
  15. * @return \Magento\InventorySalesApi\Api\Data\SalesChannelInterface[]|null
  16. */
  17. public function getSalesChannels(): ?array;
  18. /**
  19. * @param \Magento\InventorySalesApi\Api\Data\SalesChannelInterface[]|null $salesChannels
  20. * @return void
  21. */
  22. public function setSalesChannels(?array $salesChannels): void;
  23. }