We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6505cbd commit 06be8a5Copy full SHA for 06be8a5
1 file changed
src/Response/Result/Aggregation/Bucket.php
@@ -19,16 +19,30 @@ class Bucket
19
*/
20
private $position;
21
22
+ /**
23
+ * @var int|float|null
24
+ */
25
+ private $from;
26
+
27
28
29
30
+ private $to;
31
32
33
public function __construct(
34
$key
35
, int $docCount
36
, ?int $position = NULL
37
+ , $from = NULL
38
+ , $to = NULL
39
)
40
{
41
$this->key = $key;
42
$this->docCount = $docCount;
43
$this->position = $position;
44
+ $this->from = $from;
45
+ $this->to = $to;
46
}
47
48
@@ -49,4 +63,16 @@ public function position() : ?int
49
63
return $this->position;
50
64
51
65
66
67
+ public function from()
68
+ {
69
+ return $this->from;
70
+ }
71
72
73
+ public function to()
74
75
+ return $this->to;
76
77
52
78
0 commit comments