Skip to content
Snippets Groups Projects
Commit a48c2a6a authored by Mantas Marcinkevičius's avatar Mantas Marcinkevičius
Browse files

added a getter for a filter in filter aggregation

parent 23913d14
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,16 @@ class FilterAggregation extends AbstractAggregation
$this->filter = $filter;
}
/**
* Returns a filter.
*
* @return BuilderInterface
*/
public function getFilter()
{
return $this->filter;
}
/**
* {@inheritdoc}
*/
......@@ -71,7 +81,7 @@ class FilterAggregation extends AbstractAggregation
throw new \LogicException("Filter aggregation `{$this->getName()}` has no filter added");
}
return $this->filter->toArray();
return $this->getFilter()->toArray();
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment