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

Method groupFiltersByDimension

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

Source from the content-addressed store, hash-verified

352 }
353
354 private function groupFiltersByDimension(array $filters): array
355 {
356 $groups = [];
357 foreach ($filters as $key => $value) {
358 $dimension = $value['dimension'] ?? $key;
359 $groups[$dimension][] = $value;
360 }
361 return $groups;
362 }
363
364 private function buildFilterExpression(IQueryBuilder $sql, string $column, string $option, $value)
365 {

Callers 1

applyFilterOptionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected