Skip to content
Snippets Groups Projects
Commit 59af1398 authored by Aivaras Gotovskis's avatar Aivaras Gotovskis
Browse files

Remove field parameter from AbstractAggregation.

parent 6d23d26c
No related branches found
No related tags found
No related merge requests found
......@@ -60,14 +60,11 @@ abstract class AbstractAggregation implements NamedBuilderInterface
* Inner aggregations container init.
*
* @param string $name
* @param string $field
*/
public function __construct($name, $field = null)
public function __construct($name)
{
$this->name = $name;
if ($field !== null) {
$this->setField($field);
}
$this->aggregations = new NamedBuilderBag();
}
......
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