| 1 | <?php | ||
| 22 | class AvgBucketAggregation extends AbstractAggregation | ||
| 23 | { | ||
| 24 | use MetricTrait; | ||
| 25 | |||
| 26 | /** | ||
| 27 | * @var string | ||
| 28 | */ | ||
| 29 | private $bucketsPath; | ||
| 30 | |||
| 31 | /** | ||
| 32 | * @param string $name | ||
| 33 | * @param $bucketsPath | ||
| 34 | */ | ||
| 35 | public function __construct($name, $bucketsPath = null) | ||
| 43 | |||
| 44 | /** | ||
| 45 | * @return string | ||
| 46 | */ | ||
| 47 | public function getBucketsPath() | ||
| 51 | |||
| 52 | /** | ||
| 53 | * @param string $bucketsPath | ||
| 54 | */ | ||
| 55 | public function setBucketsPath($bucketsPath) | ||
| 59 | |||
| 60 | /** | ||
| 61 |      * {@inheritdoc} | ||
| 62 | */ | ||
| 63 | public function getType() | ||
| 67 | |||
| 68 | /** | ||
| 69 |      * {@inheritdoc} | ||
| 70 | */ | ||
| 71 | public function getArray() | ||
| 79 | } | ||
| 80 |