Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 85.71% |
Changes | 0 |
1 | <?php |
||
9 | class QueryBuilder implements QueryBuilderInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var \Xervice\Elasticsearch\Dependency\Plugin\QueryExtenderPluginInterface[] |
||
13 | */ |
||
14 | private $queryExtenderPlugins; |
||
15 | |||
16 | /** |
||
17 | * QueryBuilder constructor. |
||
18 | * |
||
19 | * @param \Xervice\Elasticsearch\Dependency\Plugin\QueryExtenderPluginInterface[] $queryExtenderPlugins |
||
20 | */ |
||
21 | 1 | public function __construct(array $queryExtenderPlugins) |
|
22 | { |
||
23 | 1 | $this->queryExtenderPlugins = $queryExtenderPlugins; |
|
24 | 1 | } |
|
25 | |||
26 | /** |
||
27 | * @param \Elastica\Query $query |
||
28 | * |
||
29 | * @return \Elastica\Query |
||
30 | */ |
||
31 | 1 | public function getQuery(Query $query): Query |
|
38 | } |
||
39 | } |