Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class MatchQuery extends QueryAbstract implements HasMatchOptions |
||
11 | { |
||
12 | use MatchOptions; |
||
13 | use JsonSerializeAsSimpleOrExtended; |
||
14 | |||
15 | const NAME = 'match'; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $field; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | private $query; |
||
26 | |||
27 | public function __construct(string $field, string $query) |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @inheritdoc |
||
35 | */ |
||
36 | public function jsonSerialize() |
||
41 |