MCPcopy Create free account
hub / github.com/Rello/analytics / groupFiltersByDimension

Method groupFiltersByDimension

lib/Db/StorageMapper.php:337–345  ·  view source on GitHub ↗
(array $filters)

Source from the content-addressed store, hash-verified

335 }
336
337 private function groupFiltersByDimension(array $filters): array
338 {
339 $groups = [];
340 foreach ($filters as $key => $value) {
341 $dimension = $value['dimension'] ?? $key;
342 $groups[$dimension][] = $value;
343 }
344 return $groups;
345 }
346
347 private function buildFilterExpression(IQueryBuilder $sql, string $column, string $option, $value)
348 {

Callers 1

applyFilterOptionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected