label = $v; return $this; } public function makeId(): string { return "filter_{$this->key}"; } public function filter(callable $filterCB): static { $this->filterCallback = $filterCB; return $this; } public function applyFilter(Builder $query): void { if ($this->filterCallback !== null) { $value = $this->getTable()->filters[$this->key] ?? null; if (!empty($value)) { ($this->filterCallback)($query, $value); } } } }