SearchCriteriaInterface.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 criteria interface.
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface SearchCriteriaInterface
  14. {
  15. /**
  16. * Get a list of filter groups.
  17. *
  18. * @return \Magento\Framework\Api\Search\FilterGroup[]
  19. */
  20. public function getFilterGroups();
  21. /**
  22. * Set a list of filter groups.
  23. *
  24. * @param \Magento\Framework\Api\Search\FilterGroup[] $filterGroups
  25. * @return $this
  26. */
  27. public function setFilterGroups(array $filterGroups = null);
  28. /**
  29. * Get sort order.
  30. *
  31. * @return \Magento\Framework\Api\SortOrder[]|null
  32. */
  33. public function getSortOrders();
  34. /**
  35. * Set sort order.
  36. *
  37. * @param \Magento\Framework\Api\SortOrder[] $sortOrders
  38. * @return $this
  39. */
  40. public function setSortOrders(array $sortOrders = null);
  41. /**
  42. * Get page size.
  43. *
  44. * @return int|null
  45. */
  46. public function getPageSize();
  47. /**
  48. * Set page size.
  49. *
  50. * @param int $pageSize
  51. * @return $this
  52. */
  53. public function setPageSize($pageSize);
  54. /**
  55. * Get current page.
  56. *
  57. * @return int|null
  58. */
  59. public function getCurrentPage();
  60. /**
  61. * Set current page.
  62. *
  63. * @param int $currentPage
  64. * @return $this
  65. */
  66. public function setCurrentPage($currentPage);
  67. }