1<?php
2
3namespace Elastica\Aggregation;
4
5/**
6 * Class DateRange.
7 *
8 * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-daterange-aggregation.html
9 */
10class DateRange extends Range
11{
12    /**
13     * Set the formatting for the returned date values.
14     *
15     * @param string $format see documentation for formatting options
16     *
17     * @return $this
18     */
19    public function setFormat(string $format): self
20    {
21        return $this->setParam('format', $format);
22    }
23}
24