return $facets;
} /**
* @param string $class
*
* @return CriteriaPartInterface[]
*/
private function getBaseConditionsByClass($class, Criteria
$criteria) { $conditions =
[];
foreach ($criteria->
getBaseConditions() as $condition) { if ($condition instanceof
$class) { $conditions[] =
$condition;
} } return $conditions;
} /**
* @param FacetResultInterface[] $facets
* @param string $name
*
* @return FacetResultInterface|null
*/