Total Complexity | 5 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
18 | class DisMax implements Query |
||
19 | { |
||
20 | use |
||
21 | Traits\Boost, |
||
22 | Traits\TieBreaker |
||
23 | ; |
||
24 | |||
25 | /** |
||
26 | * @var Query[] |
||
27 | */ |
||
28 | private $queries; |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | 5 | public function __construct(Query ...$queries) |
|
36 | 5 | } |
|
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | 1 | public function name(): string |
|
44 | } |
||
45 | |||
46 | /** |
||
47 | * @return array |
||
48 | */ |
||
49 | 4 | public function compile(): array |
|
66 |