ScalarNode
in package
implements
NodeInterface
Dump node for scalar values.
Table of Contents
Interfaces
- NodeInterface
- Interface for Debugs
Properties
Methods
- __construct() : mixed
- Constructor
- getChildren() : array<string|int, NodeInterface>
- Get the child nodes of this node.
- getType() : string
- Get the type of value
- getValue() : string|float|int|bool|null
- Get the value
Properties
$type
private
string
$type
$value
private
string|float|int|bool|null
$value
Methods
__construct()
Constructor
public
__construct(string $type, string|float|int|bool|null $value) : mixed
Parameters
- $type : string
-
The type of scalar value.
- $value : string|float|int|bool|null
-
The wrapped value.
getChildren()
Get the child nodes of this node.
public
getChildren() : array<string|int, NodeInterface>
Tags
Return values
array<string|int, NodeInterface>getType()
Get the type of value
public
getType() : string
Return values
stringgetValue()
Get the value
public
getValue() : string|float|int|bool|null