1 | <?php |
||
12 | class Range extends AbstractSimpleAggregation |
||
13 | { |
||
14 | use KeyedTrait; |
||
15 | |||
16 | /** |
||
17 | * Add a range to this aggregation. |
||
18 | * |
||
19 | * @param float|int $fromValue low end of this range, exclusive (greater than or equal to) |
||
20 | * @param float|int $toValue high end of this range, exclusive (less than) |
||
21 | * @param string $key customized key value |
||
22 | * |
||
23 | * @throws \Elastica\Exception\InvalidException |
||
24 | * |
||
25 | * @return $this |
||
26 | */ |
||
27 | public function addRange($fromValue = null, $toValue = null, ?string $key = null): self |
||
49 | |||
50 | /** |
||
51 | * @return $this |
||
52 | * |
||
53 | * @deprecated singe version 7.1.0, use the "setKeyed()" method instead. |
||
54 | */ |
||
55 | public function setKeyedResponse(bool $keyed = true): self |
||
61 | } |
||
62 |