Conditions | 3 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
75 | public function getArray() |
||
76 | { |
||
77 | if (!$this->getField() || !$this->getInterval()) { |
||
78 | throw new \LogicException('Date histogram aggregation must have field and interval set.'); |
||
79 | } |
||
80 | |||
81 | $out = [ |
||
82 | 'field' => $this->getField(), |
||
83 | 'interval' => $this->getInterval(), |
||
84 | ]; |
||
85 | $out = $this->processArray($out); |
||
86 | |||
87 | return $out; |
||
88 | } |
||
89 | } |
||
90 |