| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 75 | public function getArray() |
||
| 76 | { |
||
| 77 | if (count($this->getAggregations()) == 0) { |
||
| 78 | throw new \LogicException("Reverse Nested aggregation `{$this->getName()}` has no aggregations added"); |
||
| 79 | } |
||
| 80 | |||
| 81 | $output = new \stdClass(); |
||
| 82 | if ($this->getPath()) { |
||
| 83 | $output = ['path' => $this->getPath()]; |
||
| 84 | } |
||
| 85 | |||
| 86 | return $output; |
||
| 87 | } |
||
| 88 | } |
||
| 89 |