Documentation

NodeInterface

Common Interface among all nodes.

In most cases, it is better to inherit from BaseNode instead of implementing this interface yourself.

Tags
author

Johannes M. Schmitt schmittjoh@gmail.com

Table of Contents

Methods

finalize()  : mixed
Finalizes a value.
getDefaultValue()  : mixed
Returns the default value of the node.
getName()  : string
Returns the name of the node.
getPath()  : string
Returns the path of the node.
hasDefaultValue()  : bool
Returns true when the node has a default value.
isRequired()  : bool
Returns true when the node is required.
merge()  : mixed
Merges two values together.
normalize()  : mixed
Normalizes a value.

Methods

getDefaultValue()

Returns the default value of the node.

public getDefaultValue() : mixed
Tags
throws
RuntimeException

if the node has no default value

getName()

Returns the name of the node.

public getName() : string
Return values
string

getPath()

Returns the path of the node.

public getPath() : string
Return values
string

hasDefaultValue()

Returns true when the node has a default value.

public hasDefaultValue() : bool
Return values
bool

isRequired()

Returns true when the node is required.

public isRequired() : bool
Return values
bool

        
On this page

Search results