19declare(strict_types=1);
45 if ($this->requirement_constraint !==
null) {
46 return $this->requirement_constraint;
57 if ($value ===
null) {
71 return $this->is_required;
79 if ($value ===
null) {
81 $clone->value = $value;
82 $clone->null_value_was_explicitly_set =
true;
87 $clone->null_value_was_explicitly_set =
false;
96 if ($this->null_value_was_explicitly_set) {
108 if ($this->
getName() ===
null) {
109 throw new LogicException(
"Can only collect if input has a name.");
114 if ($value ===
null) {
117 $temp = $clone->is_required;
118 $clone->is_required =
true;
119 $clone->content = $clone->applyOperationsTo(
null);
120 $clone->is_required = $temp;
A constraint encodes some resrtictions on values.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.