Total Complexity | 4 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class DisMaxQuery extends QueryAbstract implements HasBoostOption |
||
14 | { |
||
15 | use BoostOption; |
||
16 | |||
17 | const NAME = 'dis_max'; |
||
18 | |||
19 | const OPTION_TIE_BREAKER = 'tie_breaker'; |
||
20 | |||
21 | const OPTIONS = [ |
||
22 | |||
23 | self::OPTION_TIE_BREAKER, |
||
24 | self::OPTION_BOOST, |
||
25 | |||
26 | ]; |
||
27 | |||
28 | /** |
||
29 | * @var QueryCollection |
||
30 | */ |
||
31 | private $queries; |
||
32 | |||
33 | protected function get_queries(): QueryCollection |
||
34 | { |
||
35 | return $this->queries; |
||
36 | } |
||
37 | |||
38 | public function __construct(array $options = []) |
||
45 | |||
46 | ]); |
||
47 | } |
||
48 | |||
49 | public function tie_breaker(float $tie_breaker) |
||
54 | } |
||
55 | |||
56 | public function jsonSerialize() |
||
65 |