19declare(strict_types=1);
46 if ($this->requirement_constraint !==
null) {
47 return $this->requirement_constraint;
61 return $this->is_required;
69 if ($value ===
null) {
71 $clone->null_value_was_explicitly_set =
true;
76 $clone->null_value_was_explicitly_set =
false;
85 if ($this->null_value_was_explicitly_set) {
97 if ($this->
getName() ===
null) {
98 throw new LogicException(
"Can only collect if input has a name.");
103 if ($value ===
null) {
106 $temp = $clone->is_required;
107 $clone->is_required =
true;
108 $clone->content = $clone->applyOperationsTo(
null);
109 $clone->is_required = $temp;
A constraint encodes some resrtictions on values.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.