19declare(strict_types=1);
42 throw new InvalidArgumentException(
'Numbers less than 0 are not allowed');
45 if (!in_array(
$status, self::$STATUS)) {
46 throw new InvalidArgumentException(
"No valid status: '$status'");
61 throw new InvalidArgumentException(
'Numbers less than 0 are not allowed');
76 if (!in_array(
$status, self::$STATUS)) {
77 throw new InvalidArgumentException(
"No valid status: '$status'");
91 ->numeric(
$lng->txt(
'prg_points'),
$lng->txt(
'prg_points_byline'))
99 $lng->txt(
'prg_status'),
100 $this->getStatusOptions(
$lng),
101 $lng->txt(
'prg_status_byline')
107 return $input->section(
112 $lng->txt(
'prg_assessment')
114 ->withAdditionalTransformation(
$refinery->custom()->transformation(function ($vals) {
116 (
int) $vals[
'points'],
117 (
int) $vals[
'status']
__construct(int $points, int $status)
getStatusOptions(ilLanguage $lng)
toFormInput(Field\Factory $input, ilLanguage $lng, Refinery $refinery)
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.