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

Method resolve

lib/Storage/FlexibleColumnResolver.php:19–30  ·  view source on GitHub ↗

@return array */

(string $reference)

Source from the content-addressed store, hash-verified

17
18 /** @return array<string,mixed> */
19 public function resolve(string $reference): array {
20 if (!preg_match('/^c_([1-9][0-9]*)$/D', $reference, $matches)) {
21 throw new FlexibleStorageException('invalid_column_reference', 'Invalid flexible column reference.', ['column' => $reference]);
22 }
23 $id = (int)$matches[1];
24 foreach ($this->columns as $column) {
25 if ((int)$column['id'] === $id) {
26 return $column;
27 }
28 }
29 throw new FlexibleStorageException('unknown_column', 'The referenced column does not belong to this dataset.', ['column' => $reference]);
30 }
31
32 /** @return list<array<string,mixed>> */
33 public function all(): array {

Callers 15

sidebar.jsFile · 0.45
reference.jsFile · 0.45
app.jsFile · 0.45
toDataURLMethod · 0.45
nFunction · 0.45
aFunction · 0.45
lFunction · 0.45
jspdf.umd.min.jsFile · 0.45
html2canvas.min.jsFile · 0.45
createMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected