Total Complexity | 3 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class MatchPhraseQuery extends QueryAbstract |
||
9 | { |
||
10 | use JsonSerializeAsSimpleOrExtended; |
||
11 | |||
12 | const NAME = 'match_phrase'; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $field; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $query; |
||
23 | |||
24 | public function __construct(string $field, string $query) |
||
28 | } |
||
29 | |||
30 | public function analyzer(?string $analyser) |
||
31 | { |
||
32 | $this->options[__FUNCTION__] = $analyser; |
||
33 | |||
34 | return $this; |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @inheritdoc |
||
39 | */ |
||
40 | public function jsonSerialize() |
||
43 | } |
||
44 | } |
||
45 |