| Conditions | 3 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 34 | public function __construct($type, $name, $body) |
||
| 35 | { |
||
| 36 | $this->type = $type; |
||
| 37 | parent::__construct($name); |
||
| 38 | |||
| 39 | if (isset($body['aggregations'])) { |
||
| 40 | foreach ($body['aggregations'] as $aggregation) { |
||
| 41 | $this->addAggregation($aggregation); |
||
| 42 | } |
||
| 43 | unset($body['aggregations']); |
||
| 44 | } |
||
| 45 | |||
| 46 | $this->body = $body; |
||
| 47 | } |
||
| 48 | |||
| 72 | } |