| 1 | <?php |
||
| 23 | class FilterAggregation extends AbstractAggregation |
||
| 24 | { |
||
| 25 | use BucketingTrait; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var BuilderInterface |
||
| 29 | */ |
||
| 30 | protected $filter; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Inner aggregations container init. |
||
| 34 | * |
||
| 35 | * @param string $name |
||
| 36 | * @param BuilderInterface $filter |
||
| 37 | */ |
||
| 38 | public function __construct($name, BuilderInterface $filter = null) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Sets a filter. |
||
| 49 | * |
||
| 50 | * @param BuilderInterface $filter |
||
| 51 | */ |
||
| 52 | public function setFilter(BuilderInterface $filter) |
||
| 56 | |||
| 57 | /** |
||
| 58 | * {@inheritdoc} |
||
| 59 | */ |
||
| 60 | public function setField($field) |
||
| 64 | |||
| 65 | /** |
||
| 66 | * {@inheritdoc} |
||
| 67 | */ |
||
| 68 | public function getArray() |
||
| 76 | |||
| 77 | /** |
||
| 78 | * {@inheritdoc} |
||
| 79 | */ |
||
| 80 | public function getType() |
||
| 84 | } |
||
| 85 |