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

Method valueField

lib/Storage/FlexibleColumnResolver.php:37–44  ·  view source on GitHub ↗
(array $column)

Source from the content-addressed store, hash-verified

35 }
36
37 public static function valueField(array $column): string {
38 return match ($column['type']) {
39 'text' => 'text_value',
40 'decimal', 'boolean' => 'decimal_value',
41 'date', 'datetime' => 'datetime_value',
42 default => throw new FlexibleStorageException('invalid_column_type', 'Unsupported logical column type.', ['column' => $column['ref']]),
43 };
44 }
45}

Callers 3

queryMethod · 0.80
applyFiltersMethod · 0.80
filterValueMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected