task = $task; } public function getTask(): Task { return $this->task; } public function updateTask(Task $task) { $this->task = $task; } }