NodeDefinition::end()

NodeParentInterface|NodeBuilder|NodeDefinition|null end() Returns the parent node. Return Value NodeParentInterface|NodeBuilder|NodeDefinition|null The builder of the parent node

NodeDefinition::defaultValue()

NodeDefinition|$this defaultValue(mixed $value) Sets the default value. Parameters mixed $value The default value Return Value NodeDefinition|$this

NodeDefinition::defaultTrue()

NodeDefinition|$this defaultTrue() Sets true as the default value. Return Value NodeDefinition|$this

NodeDefinition::defaultNull()

NodeDefinition|$this defaultNull() Sets null as the default value. Return Value NodeDefinition|$this

NodeDefinition::defaultFalse()

NodeDefinition|$this defaultFalse() Sets false as the default value. Return Value NodeDefinition|$this

NodeDefinition::cannotBeOverwritten()

NodeDefinition|$this cannotBeOverwritten(bool $deny = true) Sets whether the node can be overwritten. Parameters bool $deny Whether the overwriting is forbidden or not Return Value NodeDefinition|$this

NodeDefinition::cannotBeEmpty()

NodeDefinition|$this cannotBeEmpty() Denies the node value being empty. Return Value NodeDefinition|$this

NodeDefinition::beforeNormalization()

ExprBuilder beforeNormalization() Sets an expression to run before the normalization. Return Value ExprBuilder

NodeDefinition::attribute()

NodeDefinition|$this attribute(string $key, mixed $value) Sets an attribute on the node. Parameters string $key mixed $value Return Value NodeDefinition|$this

NodeDefinition

class NodeDefinition implements NodeParentInterface This class provides a fluent interface for defining a node. Methods __construct(string $name, NodeParentInterface $parent = null) Constructor. NodeDefinition|$this setParent(NodeParentInterface $parent) Sets the parent node. NodeDefinition|$this info(string $info) Sets info message. NodeDefinition|$this example(string|array $example) Sets example configuration. NodeDefinition|$this attribute(string $key, mixed $value