ItemsForReindex.php 643 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\CatalogInventory\Observer;
  7. class ItemsForReindex
  8. {
  9. /**
  10. * @var array
  11. */
  12. protected $itemsForReindex = [];
  13. /**
  14. * @param array $items
  15. * @return void
  16. */
  17. public function setItems(array $items)
  18. {
  19. $this->itemsForReindex = $items;
  20. }
  21. /**
  22. * @return array
  23. */
  24. public function getItems()
  25. {
  26. return $this->itemsForReindex;
  27. }
  28. /**
  29. * @return void
  30. */
  31. public function clear()
  32. {
  33. $this->itemsForReindex = [];
  34. }
  35. }