Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class RegexpQuery extends QueryAbstract implements HasBoostOption |
||
17 | { |
||
18 | use BoostOption; |
||
19 | use JsonSerializeAsSimpleOrExtended { |
||
20 | jsonSerializeAsSimpleOrExtended as public jsonSerialize; |
||
21 | } |
||
22 | |||
23 | const NAME = 'regexp'; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | private $field; |
||
29 | |||
30 | /** |
||
31 | * @var mixed |
||
32 | */ |
||
33 | private $value; |
||
34 | |||
35 | public function __construct(string $field, $value) |
||
36 | { |
||
37 | $this->field = $field; |
||
38 | $this->value = $value; |
||
39 | } |
||
40 | |||
41 | public function flags(?string $flags) |
||
42 | { |
||
43 | $this->options[__FUNCTION__] = $flags; |
||
44 | |||
45 | return $this; |
||
46 | } |
||
47 | |||
48 | public function max_determinized_states(?int $max_determinized_states) |
||
53 | } |
||
54 | } |
||
55 |