VariableNode::setDefaultValue()

setDefaultValue($value) {@inheritdoc} Parameters $value

VariableNode::setAllowEmptyValue()

setAllowEmptyValue(bool $boolean) Sets if this node is allowed to have an empty value. Parameters bool $boolean True if this entity will accept empty values

VariableNode::hasDefaultValue()

bool hasDefaultValue() Returns true when the node has a default value. Return Value bool If the node has a default value

VariableNode::getDefaultValue()

mixed getDefaultValue() Returns the default value of the node. Return Value mixed The default value Exceptions RuntimeException if the node has no default value

VariableNode

class VariableNode extends BaseNode implements PrototypeNodeInterface This node represents a value of variable type in the config tree. This node is intended for values of arbitrary type. Any PHP type is accepted as a value. Methods __construct(string $name, NodeInterface $parent = null) Constructor. from BaseNode setAttribute($key, $value) from BaseNode getAttribute($key, $default = null) from BaseNode hasAttribute($key) from BaseNode getAttributes() from BaseNode

Variable

class Variable Represents a variable. $var = new Variable('a'); will be dumped as $a by the PHP dumper. Methods __construct(string $name) string __toString() Converts the object to a string. Details __construct(string $name) Parameters string $name string __toString() Converts the object to a string. Return Value string

VarDumperTestTrait::assertDumpMatchesFormat()

assertDumpMatchesFormat($dump, $data, $message = '') Parameters $dump $data $message

VarDumperTestTrait::assertDumpEquals()

assertDumpEquals($dump, $data, $message = '') Parameters $dump $data $message

VarDumperTestTrait

trait VarDumperTestTrait Methods assertDumpEquals($dump, $data, $message = '') assertDumpMatchesFormat($dump, $data, $message = '') Details assertDumpEquals($dump, $data, $message = '') Parameters $dump $data $message assertDumpMatchesFormat($dump, $data, $message = '') Parameters $dump $data $message

VarDumperTestCase deprecated::assertDumpMatchesFormat()

assertDumpMatchesFormat($dump, $data, $message = '') Parameters $dump $data $message