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. |
|
| Boolean |
isRequired()
Returns true when the node is required. |
|
| Boolean |
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 29
public string
getName()
Returns the name of the node.
at line 36
public string
getPath()
Returns the path of the node.
at line 43
public Boolean
isRequired()
Returns true when the node is required.
at line 50
public Boolean
hasDefaultValue()
Returns true when the node has a default value.
at line 58
public mixed
getDefaultValue()
Returns the default value of the node.
at line 67
public mixed
normalize(mixed $value)
Normalizes the supplied value.
at line 77
public mixed
merge(mixed $leftSide, mixed $rightSide)
Merges two values together.
at line 86
public mixed
finalize(mixed $value)
Finalizes a value.