Lines Matching refs:value
25 protected $value; variable in ComboStrap\\Meta\\Api\\MetadataBoolean
39 if ($this->value === null) {
42 return $this->value;
47 * @param null|boolean $value
50 public function setValue($value): Metadata argument
52 if ($value === null) {
53 $this->value = null;
56 if (!is_bool($value)) {
57 throw new ExceptionRuntime("The value is not a boolean: " . var_export($value, true));
59 $this->value = $value;
93 $value = $this->getValue();
99 return $value;
104 return $value;
108 $value = DataType::toBooleanString($value);
111 return $value;
119 function setFromStoreValue($value): Metadata argument
121 $value = $this->toBoolean($value);
122 return $this->setValue($value);
129 return $this->value !== null;
133 function setFromStoreValueWithoutException($value): Metadata argument
135 $this->value = $this->toBoolean($value);
140 function toBoolean($value): ?bool argument
146 return DataType::toBoolean($value);