| Total Complexity | 4 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class MultiMatchQuery extends QueryAbstract implements HasMatchOptions |
||
| 10 | { |
||
| 11 | use MatchOptions; |
||
| 12 | |||
| 13 | const NAME = 'multi_match'; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var array |
||
| 17 | */ |
||
| 18 | private $fields; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private $query; |
||
| 24 | |||
| 25 | public function __construct(array $fields, string $query) |
||
| 26 | { |
||
| 27 | $this->fields = $fields; |
||
| 28 | $this->query = $query; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function type(?string $type) |
||
| 36 | } |
||
| 37 | |||
| 38 | public function tie_breaker(?float $tie_breaker) |
||
| 39 | { |
||
| 40 | $this->options[__FUNCTION__] = $tie_breaker; |
||
| 41 | |||
| 42 | return $this; |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @inheritdoc |
||
| 47 | */ |
||
| 48 | public function jsonSerialize() |
||
| 51 | } |
||
| 52 | } |
||
| 53 |