QueryResult.php 793 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Search\Model;
  7. /**
  8. * @api
  9. * @since 100.0.2
  10. */
  11. class QueryResult
  12. {
  13. /**
  14. * @var string
  15. */
  16. private $queryText;
  17. /**
  18. * @var int
  19. */
  20. private $resultsCount;
  21. /**
  22. * @param string $queryText
  23. * @param string $resultsCount
  24. */
  25. public function __construct($queryText, $resultsCount)
  26. {
  27. $this->queryText = $queryText;
  28. $this->resultsCount = $resultsCount;
  29. }
  30. /**
  31. * @return string
  32. */
  33. public function getQueryText()
  34. {
  35. return $this->queryText;
  36. }
  37. /**
  38. * @return int
  39. */
  40. public function getResultsCount()
  41. {
  42. return $this->resultsCount;
  43. }
  44. }