1 | <?php |
||
22 | class ReverseNestedAggregation extends AbstractAggregation |
||
23 | { |
||
24 | use BucketingTrait; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $path; |
||
30 | |||
31 | /** |
||
32 | * Inner aggregations container init. |
||
33 | * |
||
34 | * @param string $name |
||
35 | * @param string $path |
||
36 | */ |
||
37 | public function __construct($name, $path = null) |
||
43 | |||
44 | /** |
||
45 | * Return path. |
||
46 | * |
||
47 | * @return string |
||
48 | */ |
||
49 | public function getPath() |
||
53 | |||
54 | /** |
||
55 | * Sets path. |
||
56 | * |
||
57 | * @param string $path |
||
58 | */ |
||
59 | public function setPath($path) |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | public function getType() |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | public function getArray() |
||
88 | } |
||
89 |