StockExtension.php 753 B

12345678910111213141516171819202122232425262728293031
  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. * Extension class for @see \Magento\InventoryApi\Api\Data\StockInterface
  11. */
  12. class StockExtension extends \Magento\Framework\Api\AbstractSimpleObject implements StockExtensionInterface
  13. {
  14. /**
  15. * @inheritdoc
  16. */
  17. public function getSalesChannels(): ?array
  18. {
  19. return $this->_get('sales_channels');
  20. }
  21. /**
  22. * @inheritdoc
  23. */
  24. public function setSalesChannels(?array $salesChannels): void
  25. {
  26. $this->setData('sales_channels', $salesChannels);
  27. }
  28. }