| @@ 79-89 (lines=11) @@ | ||
| 76 | * | |
| 77 | * @return ValueAggregation|null | |
| 78 | */ | |
| 79 | public function getAggregation($name) | |
| 80 |     { | |
| 81 | // TODO: remove this *** after DSL update | |
| 82 | $name = AbstractAggregation::PREFIX . $name; | |
| 83 | ||
| 84 |         if (!isset($this->rawData[$name])) { | |
| 85 | return null; | |
| 86 | } | |
| 87 | ||
| 88 | return new ValueAggregation($this->rawData[$name]); | |
| 89 | } | |
| 90 | ||
| 91 | /** | |
| 92 | * Applies path method to aggregations. | |
| @@ 48-58 (lines=11) @@ | ||
| 45 | * | |
| 46 | * @return ValueAggregation|null | |
| 47 | */ | |
| 48 | public function getAggregation($name) | |
| 49 |     { | |
| 50 | // TODO: remove this *** after DSL update | |
| 51 | $name = AbstractAggregation::PREFIX . $name; | |
| 52 | ||
| 53 |         if (!isset($this->aggregations[$name])) { | |
| 54 | return null; | |
| 55 | } | |
| 56 | ||
| 57 | return new ValueAggregation($this->aggregations[$name]); | |
| 58 | } | |
| 59 | ||
| 60 | /** | |
| 61 |      * {@inheritdoc} | |