Skip to content

Commit

Permalink
getSelfFiltering renamed to hasSelfFiltering
Browse files Browse the repository at this point in the history
  • Loading branch information
k-samuel committed Dec 1, 2023
1 parent 9a36114 commit 917d947
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Filter/AbstractFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function selfFiltering(bool $enabled): self
* Get self-filtering flag
* @return boolean
*/
public function getSelfFiltering(): bool
public function hasSelfFiltering(): bool
{
return $this->selfFiltering;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Filter/FilterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ public function filterInput(array $facetedData, array &$inputIdKeys, array $exc
*
* @return bool
*/
public function getSelfFiltering(): bool;
public function hasSelfFiltering(): bool;
}
4 changes: 2 additions & 2 deletions src/Index/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public function aggregate(AggregationQuery $query): array
$countValues,
$input,
$excludeMap,
$query->getSelfFiltering(),
$query->hasSelfFiltering(),
$filters
);

Expand Down Expand Up @@ -247,7 +247,7 @@ private function aggregationScan(
foreach ($this->scanner->scan($this->storage) as $filterName => $filterValues) {

$needSelfFiltering = false;
if ($selfFiltering != false || (isset($indexedFilters[$filterName]) && $indexedFilters[$filterName]->getSelfFiltering())) {
if ($selfFiltering != false || (isset($indexedFilters[$filterName]) && $indexedFilters[$filterName]->hasSelfFiltering())) {
$needSelfFiltering = true;
}

Expand Down
4 changes: 2 additions & 2 deletions src/Query/AggregationQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ public function selfFiltering(bool $enabled): self

/**
* Get self-filtering flag
* @return boolean
* @return bool
*/
public function getSelfFiltering(): bool
public function hasSelfFiltering(): bool
{
return $this->selfFiltering;
}
Expand Down

0 comments on commit 917d947

Please sign in to comment.