12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\CatalogInventory\Observer;
- class ItemsForReindex
- {
- /**
- * @var array
- */
- protected $itemsForReindex = [];
- /**
- * @param array $items
- * @return void
- */
- public function setItems(array $items)
- {
- $this->itemsForReindex = $items;
- }
- /**
- * @return array
- */
- public function getItems()
- {
- return $this->itemsForReindex;
- }
- /**
- * @return void
- */
- public function clear()
- {
- $this->itemsForReindex = [];
- }
- }
|