LLM OCP API: Fix type errors

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr
2023-06-20 15:45:18 +02:00
parent b8a9f08d83
commit b6a95e35b0
2 changed files with 24 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ use OC\LanguageModel\Db\Task;
abstract class AbstractLanguageModelTask implements ILanguageModelTask {
protected ?int $id;
protected ?string $output;
protected int $status = ILanguageModelTask::STATUS_UNKNOWN;
final public function __construct(
@@ -26,6 +27,20 @@ abstract class AbstractLanguageModelTask implements ILanguageModelTask {
abstract public function getType(): string;
/**
* @return string|null
*/
final public function getOutput(): ?string {
return $this->output;
}
/**
* @param string|null $output
*/
final public function setOutput(?string $output): void {
$this->output = $output;
}
/**
* @return int
*/