OperationList.php 601 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\AsynchronousOperations\Model;
  7. /**
  8. * List of bulk operations.
  9. */
  10. class OperationList implements \Magento\AsynchronousOperations\Api\Data\OperationListInterface
  11. {
  12. /**
  13. * @var array
  14. */
  15. private $items;
  16. /**
  17. * @param array $items [optional]
  18. */
  19. public function __construct(array $items = [])
  20. {
  21. $this->items = $items;
  22. }
  23. /**
  24. * @inheritdoc
  25. */
  26. public function getItems()
  27. {
  28. return $this->items;
  29. }
  30. }