CartSearchResultsInterface.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Quote\Api\Data;
  7. /**
  8. * Interface CartSearchResultsInterface
  9. * @api
  10. * @since 100.0.2
  11. */
  12. interface CartSearchResultsInterface extends \Magento\Framework\Api\SearchResultsInterface
  13. {
  14. /**#@+
  15. * Constants defined for keys of array, makes typos less likely
  16. */
  17. const KEY_ITEMS = 'items';
  18. const KEY_SEARCH_CRITERIA = 'search_criteria';
  19. const KEY_TOTAL_COUNT = 'total_count';
  20. /**#@-*/
  21. /**
  22. * Get carts list.
  23. *
  24. * @return \Magento\Quote\Api\Data\CartInterface[]
  25. */
  26. public function getItems();
  27. /**
  28. * Set carts list.
  29. *
  30. * @param \Magento\Quote\Api\Data\CartInterface[] $items
  31. * @return $this
  32. */
  33. public function setItems(array $items);
  34. /**
  35. * Get search criteria.
  36. *
  37. * @return \Magento\Framework\Api\SearchCriteriaInterface
  38. */
  39. public function getSearchCriteria();
  40. /**
  41. * Set search criteria.
  42. *
  43. * @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
  44. * @return $this
  45. */
  46. public function setSearchCriteria(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);
  47. /**
  48. * Get total count.
  49. *
  50. * @return int
  51. */
  52. public function getTotalCount();
  53. /**
  54. * Set total count.
  55. *
  56. * @param int $totalCount
  57. * @return $this
  58. */
  59. public function setTotalCount($totalCount);
  60. }