1 | <?php |
||
22 | class GeoShapeQuery implements BuilderInterface |
||
23 | { |
||
24 | use ParametersTrait; |
||
25 | |||
26 | /** |
||
27 | * @var array |
||
28 | */ |
||
29 | private $fields = []; |
||
30 | |||
31 | /** |
||
32 | * @param array $parameters |
||
33 | */ |
||
34 | public function __construct(array $parameters = []) |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | public function getType() |
||
46 | |||
47 | /** |
||
48 | * Add geo-shape provided filter. |
||
49 | * |
||
50 | * @param string $field Field name. |
||
51 | * @param string $type Shape type. |
||
52 | * @param array $coordinates Shape coordinates. |
||
53 | * @param array $parameters Additional parameters. |
||
54 | */ |
||
55 | public function addShape($field, $type, array $coordinates, array $parameters = []) |
||
67 | |||
68 | /** |
||
69 | * Add geo-shape pre-indexed filter. |
||
70 | * |
||
71 | * @param string $field Field name. |
||
72 | * @param string $id The ID of the document that containing the pre-indexed shape. |
||
73 | * @param string $type Name of the index where the pre-indexed shape is. |
||
74 | * @param string $index Index type where the pre-indexed shape is. |
||
75 | * @param string $path The field specified as path containing the pre-indexed shape. |
||
76 | * @param array $parameters Additional parameters. |
||
77 | */ |
||
78 | public function addPreIndexedShape($field, $id, $type, $index, $path, array $parameters = []) |
||
92 | |||
93 | /** |
||
94 | * {@inheritdoc} |
||
95 | */ |
||
96 | public function toArray() |
||
102 | } |
||
103 |