1 | <?php |
||
19 | class DateHistogramAggregation extends AbstractAggregation |
||
20 | { |
||
21 | use BucketingTrait; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $interval; |
||
27 | |||
28 | /** |
||
29 | * Inner aggregations container init. |
||
30 | * |
||
31 | * @param string $name |
||
32 | * @param string $field |
||
33 | * @param string $interval |
||
34 | * @param array $parameters |
||
35 | */ |
||
36 | public function __construct( |
||
48 | |||
49 | /** |
||
50 | * @return int |
||
51 | */ |
||
52 | public function getInterval() |
||
56 | |||
57 | /** |
||
58 | * @param string $interval |
||
59 | */ |
||
60 | public function setInterval($interval) |
||
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | public function getType() |
||
72 | |||
73 | /** |
||
74 | * {@inheritdoc} |
||
75 | */ |
||
76 | public function getArray() |
||
87 | |||
88 | /** |
||
89 | * Checks if all required parameters are set. |
||
90 | * |
||
91 | * @param array $data |
||
92 | * |
||
93 | * @throws \LogicException |
||
94 | */ |
||
95 | protected function checkRequiredParameters(array $data) |
||
101 | } |
||
102 |