1 | <?php |
||
22 | class GeoCentroidAggregation extends AbstractAggregation |
||
23 | { |
||
24 | use MetricTrait; |
||
25 | |||
26 | /** |
||
27 | * Inner aggregations container init. |
||
28 | * |
||
29 | * @param string $name |
||
30 | * @param string $field |
||
31 | */ |
||
32 | public function __construct($name, $field = null) |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | public function getArray() |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function getType() |
||
61 | } |
||
62 |