NodeInterface
interface NodeInterface
Common Interface among all nodes.
In most cases, it is better to inherit from BaseNode instead of implementing this interface yourself.
Methods
string
getName()
Returns the name of the node.
string
getPath()
Returns the path of the node.
bool
isRequired()
Returns true when the node is required.
bool
hasDefaultValue()
Returns true when the node has a default value.
mixed
getDefaultValue()
Returns the default value of the node.
mixed
normalize(mixed $value)
Normalizes the supplied value.
mixed
merge(mixed $leftSide, mixed $rightSide)
Merges two values together.
mixed
finalize(mixed $value)
Finalizes a value.
Details
at line line 29
string
getName()
Returns the name of the node.
at line line 36
string
getPath()
Returns the path of the node.
at line line 43
bool
isRequired()
Returns true when the node is required.
at line line 50
bool
hasDefaultValue()
Returns true when the node has a default value.
at line line 59
mixed
getDefaultValue()
Returns the default value of the node.
at line line 68
mixed
normalize(mixed $value)
Normalizes the supplied value.
at line line 78
mixed
merge(mixed $leftSide, mixed $rightSide)
Merges two values together.
at line line 87
mixed
finalize(mixed $value)
Finalizes a value.