SearchResultInterface.php 592 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Data;
  7. /**
  8. * Class SearchResultInterface
  9. */
  10. interface SearchResultInterface
  11. {
  12. /**
  13. * Retrieve collection items
  14. *
  15. * @return \Magento\Framework\DataObject[]
  16. */
  17. public function getItems();
  18. /**
  19. * Retrieve count of currently loaded items
  20. *
  21. * @return int
  22. */
  23. public function getTotalCount();
  24. /**
  25. * @return \Magento\Framework\Api\CriteriaInterface
  26. */
  27. public function getSearchCriteria();
  28. }