ValuePart
trait ValuePart
Value part
For all models that have a value (or expression)
Methods
$this
$this
mixed
bool
$this
$this
unsetValue()
Unsets the value
string|integer|float|bool|null|PhpConstant
getValue()
Returns the value
bool
hasValue()
Checks whether a value or expression is set
bool
isExpression()
Returns whether an expression is set
$this
setExpression(string $expr)
Sets an expression
string
getExpression()
Returns the expression
$this
unsetExpression()
Unsets the expression
Details
at line line 32
$this
setDefaultValue(mixed $value)
deprecated
deprecated
at line line 40
$this
unsetDefaultValue()
deprecated
deprecated
at line line 48
mixed
getDefaultValue()
deprecated
deprecated
at line line 56
bool
hasDefaultValue()
deprecated
deprecated
at line line 82
$this
setValue(string|integer|float|bool|null|PhpConstant $value)
Sets the value
at line line 97
$this
unsetValue()
Unsets the value
at line line 109
string|integer|float|bool|null|PhpConstant
getValue()
Returns the value
at line line 118
bool
hasValue()
Checks whether a value or expression is set
at line line 127
bool
isExpression()
Returns whether an expression is set
at line line 137
$this
setExpression(string $expr)
Sets an expression
at line line 149
string
getExpression()
Returns the expression
at line line 158
$this
unsetExpression()
Unsets the expression