19 declare(strict_types=1);
31 private int $active_id,
33 private float $max_points,
34 private float $reached_points,
37 private bool $passed_once,
44 $clone->passed_once = $passed_once;
50 return $this->max_points > 0 ? $this->reached_points / $this->max_points * 100 : 0.0;
55 return $this->active_id;
60 return $this->attempt;
65 return $this->max_points;
70 return $this->reached_points;
80 return $this->mark->getOfficialName();
85 return $this->mark->getShortName();
90 return $this->mark->getPassed();
95 return !$this->mark->getPassed();
105 return $this->passed_once;
A class defining marks for assessment test objects.
withPassedOnce(bool $passed_once)
Class ParticipantResult is a model representation of an entry in the test_result_cache table...
foreach($mandatory_scripts as $file) $timestamp
__construct(private int $active_id, private int $attempt, private float $max_points, private float $reached_points, private Mark $mark, private int $timestamp, private bool $passed_once,)