/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/Search/Request/Query/MatchQuery.php
112 строк
2 KB
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 17:47
22 окт 2025, 17:47
1b769b7
Код
Авторство
О чём код?
<?php /** * Copyright 2021 Adobe * All Rights Reserved. */ namespace Magento\Framework\Search\Request\Query; use Magento\Framework\Search\Request\QueryInterface; /** * Match Query * * @api * @since 100.0.2 */ class MatchQuery implements QueryInterface { /** * Name * * @var string */ protected $name; /** * Value * * @var string */ protected $value; /** * Boost * * @var int|null */ protected $boost; /** * Match query array * Possible structure: * array( * ['field' => 'some_field', 'boost' => 'some_boost'], * ['field' => 'some_field', 'boost' => 'some_boost'], * ) * * @var array */ protected $matches = []; /** * @param string $name * @param string $value * @param int|null $boost * @param array $matches * @codeCoverageIgnore */ public function __construct($name, $value, $boost, array $matches) { $this->name = $name; $this->value = $value; $this->boost = $boost; $this->matches = $matches; } /** * @return string */ public function getValue() { return $this->value; } /** * {@inheritdoc} * @codeCoverageIgnore */ public function getType() { return QueryInterface::TYPE_MATCH; } /** * {@inheritdoc} * @codeCoverageIgnore */ public function getName() { return $this->name; } /** * {@inheritdoc} * @codeCoverageIgnore */ public function getBoost() { return $this->boost; } /** * Get Matches * * @return array * @codeCoverageIgnore */ public function getMatches() { return $this->matches; } }