trait ValuePart

Value part

For all models that have a value (or expression)

Methods

$this
setDefaultValue(mixed $value) deprecated

No description

$this
unsetDefaultValue() deprecated

No description

mixed
getDefaultValue() deprecated

No description

bool
hasDefaultValue() deprecated

No description

$this
setValue(string|integer|float|bool|null|PhpConstant $value)

Sets the value

$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 use `setValue()` instead

Parameters

mixed $value

Return Value

$this

at line line 40
$this unsetDefaultValue() deprecated

deprecated use `unsetValue()` instead

Return Value

$this

at line line 48
mixed getDefaultValue() deprecated

deprecated use `getValue()` instead

Return Value

mixed

at line line 56
bool hasDefaultValue() deprecated

deprecated use `hasValue()` instead

Return Value

bool

at line line 82
$this setValue(string|integer|float|bool|null|PhpConstant $value)

Sets the value

Parameters

string|integer|float|bool|null|PhpConstant $value

Return Value

$this

Exceptions

InvalidArgumentException if the value is not an accepted primitve

at line line 97
$this unsetValue()

Unsets the value

Return Value

$this

at line line 109
string|integer|float|bool|null|PhpConstant getValue()

Returns the value

Return Value

string|integer|float|bool|null|PhpConstant

at line line 118
bool hasValue()

Checks whether a value or expression is set

Return Value

bool

at line line 127
bool isExpression()

Returns whether an expression is set

Return Value

bool

at line line 137
$this setExpression(string $expr)

Sets an expression

Parameters

string $expr

Return Value

$this

at line line 149
string getExpression()

Returns the expression

Return Value

string

at line line 158
$this unsetExpression()

Unsets the expression

Return Value

$this