Skip to content
Snippets Groups Projects
Commit 1d795a53 authored by Simonas Šerlinskas's avatar Simonas Šerlinskas
Browse files

fixed bool instance creating function name

parent 2f9df76e
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,7 @@ class QueryEndpoint extends AbstractSearchEndpoint implements OrderedNormalizerI
public function addToBool(BuilderInterface $builder, $boolType = null, $key = null)
{
if (!$this->bool) {
$this->bool = $this->createBoolInstance();
$this->bool = $this->getBoolInstance();
}
$this->bool->add($builder, $boolType, $key);
......@@ -100,7 +100,7 @@ class QueryEndpoint extends AbstractSearchEndpoint implements OrderedNormalizerI
*
* @return BoolQuery
*/
protected function createBoolInstance()
protected function getBoolInstance()
{
return new BoolQuery();
}
......
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