1 | <?php |
||
12 | class NormalizeAggregation extends AbstractAggregation |
||
13 | { |
||
14 | public function __construct(string $name, ?string $bucketsPath = null, ?string $method = null) |
||
26 | |||
27 | /** |
||
28 | * Set the buckets_path for this aggregation. |
||
29 | * |
||
30 | * @return $this |
||
31 | */ |
||
32 | public function setBucketsPath(string $bucketsPath): self |
||
36 | |||
37 | /** |
||
38 | * Set the method for this aggregation. |
||
39 | * |
||
40 | * @return $this |
||
41 | */ |
||
42 | public function setMethod(string $method): self |
||
46 | |||
47 | /** |
||
48 | * Set the format for this aggregation. |
||
49 | * |
||
50 | * @return $this |
||
51 | */ |
||
52 | public function setFormat(string $format): self |
||
56 | |||
57 | /** |
||
58 | * @throws InvalidException If buckets path or method are not set |
||
59 | */ |
||
60 | public function toArray(): array |
||
72 | } |
||
73 |