task; } public function isSuccess(): bool { return $this->success; } public function getException(): ?\Throwable { return $this->exception; } }