| 1 | <?php |
||
| 20 | class RawAggregation extends AbstractAggregation |
||
| 21 | { |
||
| 22 | use BucketingTrait; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | private $type; |
||
| 28 | /** |
||
| 29 | * @var array |
||
| 30 | */ |
||
| 31 | private $body; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Inner aggregations container init. |
||
| 35 | * |
||
| 36 | * @param string $name |
||
| 37 | * @param string $type |
||
| 38 | * @param array $body |
||
| 39 | */ |
||
| 40 | public function __construct($name, $type, $body) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * {@inheritdoc} |
||
| 50 | */ |
||
| 51 | public function getType() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @param string $type |
||
| 58 | */ |
||
| 59 | public function setType($type) |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @return array |
||
| 66 | */ |
||
| 67 | public function getBody() |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @param array $body |
||
| 74 | */ |
||
| 75 | public function setBody($body) |
||
| 79 | |||
| 80 | /** |
||
| 81 | * {@inheritdoc} |
||
| 82 | */ |
||
| 83 | protected function getArray() |
||
| 87 | } |
||
| 88 |