task = $task; $this->taskId = $taskId; } public function getTask(): TaskInterface { return $this->task; } public function getTaskId(): string { return $this->taskId; } }