OrderItemSearchResultInterface.php 960 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Api\Data;
  7. /**
  8. * Order item search result interface.
  9. *
  10. * An order is a document that a web store issues to a customer. Magento generates a sales order that lists the product
  11. * items, billing and shipping addresses, and shipping and payment methods. A corresponding external document, known as
  12. * a purchase order, is emailed to the customer.
  13. * @api
  14. * @since 100.0.2
  15. */
  16. interface OrderItemSearchResultInterface extends \Magento\Framework\Api\SearchResultsInterface
  17. {
  18. /**
  19. * Gets collection items.
  20. *
  21. * @return \Magento\Sales\Api\Data\OrderItemInterface[] Array of collection items.
  22. */
  23. public function getItems();
  24. /**
  25. * Set collection items.
  26. *
  27. * @param \Magento\Sales\Api\Data\OrderItemInterface[] $items
  28. * @return $this
  29. */
  30. public function setItems(array $items);
  31. }