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