| Methods |
public
|
setDefaultValue(mixed $value): void
|
#
|
public
|
hasDefaultValue(): bool
Returns true when the node has a default value.
Returns true when the node has a default value.
Implements
|
#
|
public
|
getDefaultValue(): mixed
Returns the default value of the node.
Returns the default value of the node.
Implements
|
#
|
public
|
setAllowEmptyValue(bool $boolean): void
Sets if this node is allowed to have an empty value.
Sets if this node is allowed to have an empty value.
Parameters
| $boolean |
True if this entity will accept empty values
|
|
#
|
public
|
setName(string $name): void
Sets the name of the node.
Sets the name of the node.
Implements
|
#
|
protected
|
validateType(mixed $value): void
Validates the type of a Node.
Validates the type of a Node.
Overriden by
Implements
|
#
|
protected
|
finalizeValue(mixed $value): mixed
Finalizes a value.
|
#
|
protected
|
normalizeValue(mixed $value): mixed
Normalizes the value.
|
#
|
protected
|
mergeValues(mixed $leftSide, mixed $rightSide): mixed
Merges two values together.
Merges two values together.
Implements
|
#
|
protected
|
isValueEmpty(mixed $value): bool
Evaluates if the given value is to be treated as empty.
Evaluates if the given value is to be treated as empty.
By default, PHP's empty() function is used to test for emptiness. This
method may be overridden by subtypes to better match their understanding
of empty data.
Overriden by
|
#
|