count )()`, not `$task->count()` (the latter looks for a * method named `count`, not the property). * * @param string $id Unique id, used in the admin-post task param. * @param string $label Admin-facing label. * @param string $description One-line explanation of what this cleans. * @param \Closure $count `(): int` Number of rows this would affect right now. * @param \Closure $clean `(): int` Deletes/cleans them; returns the number affected. * @param \Closure|null $preview `(int $limit): array{columns: array, rows: array>}` * Up to $limit of the rows a clean would affect, as plain text keyed * by column; null when there's nothing meaningful to show. */ public function __construct( public readonly string $id, public readonly string $label, public readonly string $description, public readonly \Closure $count, public readonly \Closure $clean, public readonly ?\Closure $preview = null ) {} }