users ->map(fn(User $user) => new TimesheetPerUserSheet($user, $this->month, $this->types)) ->toArray(); } public function forUsers(Collection $users): static { $this->users = $users; return $this; } public function forMonth(Carbon $month): static { $this->month = $month; return $this; } public function forVacationTypes(Collection $types): static { $this->types = $types; return $this; } }