Lines Matching refs:interval
32 * Set the interval by which documents will be bucketed.
34 * @param int|string $interval
38 public function setInterval($interval)
40 $interval = (string) $interval;
42 if (\in_array($interval, self::CALENDAR_INTERVAL_VALUES, true)) {
43 return $this->setCalendarInterval($interval);
46 return $this->setFixedInterval($interval);
52 public function setCalendarInterval(string $interval): self
54 return $this->setParam('calendar_interval', $interval);
60 public function setFixedInterval(string $interval): self
62 return $this->setParam('fixed_interval', $interval);