1 | <?php |
||
12 | class Range extends AbstractSimpleAggregation |
||
13 | { |
||
14 | /** |
||
15 | * Add a range to this aggregation. |
||
16 | * |
||
17 | * @param float|int $fromValue low end of this range, exclusive (greater than or equal to) |
||
18 | * @param float|int $toValue high end of this range, exclusive (less than) |
||
19 | * @param string $key customized key value |
||
20 | * |
||
21 | * @throws \Elastica\Exception\InvalidException |
||
22 | * |
||
23 | * @return $this |
||
24 | */ |
||
25 | public function addRange($fromValue = null, $toValue = null, ?string $key = null): self |
||
47 | |||
48 | /** |
||
49 | * If set to true, a unique string key will be associated with each bucket, and ranges will be returned as an associative array. |
||
50 | * |
||
51 | * @return $this |
||
52 | */ |
||
53 | public function setKeyed(bool $keyed): self |
||
57 | |||
58 | /** |
||
59 | * @deprecated Singe 7.1.0, use the "setKeyed()" method instead. |
||
60 | * |
||
61 | * @return $this |
||
62 | */ |
||
63 | public function setKeyedResponse(bool $keyed = true): self |
||
69 | } |
||
70 |