task = $task; $this->id = \spl_object_hash($this->task); } public function getId(): string { return $this->id; } public function getTask(): Task { return $this->task; } }