SkuListInStock.php 935 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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\InventoryIndexer\Indexer\SourceItem;
  8. /**
  9. * Represents relation between stock and sku list
  10. */
  11. class SkuListInStock
  12. {
  13. /**
  14. * @var int
  15. */
  16. private $stockId;
  17. /**
  18. * @var array
  19. */
  20. private $skuList;
  21. /**
  22. * @return int
  23. */
  24. public function getStockId(): int
  25. {
  26. return $this->stockId;
  27. }
  28. /**
  29. * @param int $stockId
  30. * @return void
  31. */
  32. public function setStockId(int $stockId)
  33. {
  34. $this->stockId = $stockId;
  35. }
  36. /**
  37. * @return array
  38. */
  39. public function getSkuList(): array
  40. {
  41. return $this->skuList;
  42. }
  43. /**
  44. * @param array $skuList
  45. * @return void
  46. */
  47. public function setSkuList(array $skuList)
  48. {
  49. $this->skuList = $skuList;
  50. }
  51. }