*/ public array $tasksWithTime = []; public function hasTimeEntries(int $taskId): bool { return in_array($taskId, $this->tasksWithTime, true); } }