- OpenEndedTask: clearCorrectAnswers()

This commit is contained in:
Wiesner András 2025-10-12 22:39:54 +02:00
parent 04926e4ba6
commit 242941461b

View File

@ -17,6 +17,10 @@ class OpenEndedTask extends PicturedTask
$this->correct_answer[] = $ca;
}
public function clearCorrectAnswers(): void {
$this->correct_answer = [];
}
public function saveAnswer(mixed $ans): bool
{
// collect transformations