1 | <?php |
||
22 | class TermsSetQuery implements BuilderInterface |
||
23 | { |
||
24 | use ParametersTrait; |
||
25 | |||
26 | const MINIMUM_SHOULD_MATCH_TYPE_FIELD = 'minimum_should_match_field'; |
||
27 | const MINIMUM_SHOULD_MATCH_TYPE_SCRIPT = 'minimum_should_match_script'; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private $field; |
||
33 | |||
34 | /** |
||
35 | * @var array |
||
36 | */ |
||
37 | private $terms; |
||
38 | |||
39 | /** |
||
40 | * Constructor. |
||
41 | * |
||
42 | * @param string $field Field name |
||
43 | * @param array $terms An array of terms |
||
44 | * @param array $parameters Parameters |
||
45 | */ |
||
46 | public function __construct($field, $terms, array $parameters) |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function getType() |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | public function toArray() |
||
75 | |||
76 | private function validateParameters(array $parameters) |
||
85 | } |
||
86 |