SearchResultsInterface.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Api;
  7. /**
  8. * Search results interface.
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface SearchResultsInterface
  14. {
  15. /**
  16. * Get items list.
  17. *
  18. * @return \Magento\Framework\Api\ExtensibleDataInterface[]
  19. */
  20. public function getItems();
  21. /**
  22. * Set items list.
  23. *
  24. * @param \Magento\Framework\Api\ExtensibleDataInterface[] $items
  25. * @return $this
  26. */
  27. public function setItems(array $items);
  28. /**
  29. * Get search criteria.
  30. *
  31. * @return \Magento\Framework\Api\SearchCriteriaInterface
  32. */
  33. public function getSearchCriteria();
  34. /**
  35. * Set search criteria.
  36. *
  37. * @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
  38. * @return $this
  39. */
  40. public function setSearchCriteria(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);
  41. /**
  42. * Get total count.
  43. *
  44. * @return int
  45. */
  46. public function getTotalCount();
  47. /**
  48. * Set total count.
  49. *
  50. * @param int $totalCount
  51. * @return $this
  52. */
  53. public function setTotalCount($totalCount);
  54. }