id = $id; } /** * @return string Task identifier. */ public function getId(): string { return $this->id; } /** * @return \Amp\Promise Resolved with the task result or failure reason. */ abstract public function promise(): Promise; }