18 declare(strict_types=1);
44 if ($this->requirement_constraint !== null) {
45 return $this->requirement_constraint;
56 if ($value === null) {
70 return $this->is_required;
78 if ($value === null) {
80 $clone->value = $value;
81 $clone->null_value_was_explicitly_set =
true;
86 $clone->null_value_was_explicitly_set =
false;
95 if ($this->null_value_was_explicitly_set) {
107 if ($this->
getName() === null) {
108 throw new LogicException(
"Can only collect if input has a name.");
113 if ($value === null) {
116 $temp = $clone->is_required;
117 $clone->is_required =
true;
118 $clone->content = $clone->applyOperationsTo(null);
119 $clone->is_required = $temp;
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
A constraint encodes some resrtictions on values.