MatchContainer.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Search\Adapter\Mysql\Query;
  7. use Magento\Framework\Search\Request\QueryInterface;
  8. // @codeCoverageIgnore
  9. /**
  10. * MySQL search query match container.
  11. *
  12. * @deprecated 102.0.0
  13. * @see \Magento\ElasticSearch
  14. */
  15. class MatchContainer
  16. {
  17. /**
  18. * @var QueryInterface
  19. */
  20. private $request;
  21. /**
  22. * @var string
  23. */
  24. private $conditionType;
  25. /**
  26. * @param QueryInterface $request
  27. * @param string $conditionType
  28. * @internal param string $name
  29. */
  30. public function __construct(QueryInterface $request, $conditionType)
  31. {
  32. $this->request = $request;
  33. $this->conditionType = $conditionType;
  34. }
  35. /**
  36. * Get request.
  37. *
  38. * @return QueryInterface
  39. */
  40. public function getRequest()
  41. {
  42. return $this->request;
  43. }
  44. /**
  45. * Get condition type.
  46. *
  47. * @return string
  48. */
  49. public function getConditionType()
  50. {
  51. return $this->conditionType;
  52. }
  53. }