/**
* @param FacetResultInterface[] $facets
*/
private function switchPriceFilterValues(array
$facets, Criteria
$criteria) { /** @var RangeFacetResult|null $facet */
$facet =
$this->
getFacetByName($facets, 'price'
);
if ($facet &&
$criteria->
hasBaseCondition('price'
)) { /** @var PriceCondition $condition */
$condition =
$criteria->
getBaseCondition('price'
);
$facet->
setMin($condition->
getMinPrice());
if ($condition->
getMaxPrice() != 0
) { $facet->
setMax($condition->
getMaxPrice());
} } } /**
* @param FacetResultInterface[] $facets
*/