YamlReferenceDumper
in package
Dumps a Yaml reference configuration for the given configuration/node instance.
Tags
Table of Contents
Properties
- $reference : string|null
Methods
- dump() : string
- dumpAtPath() : string
- dumpNode() : string
- getPrototypeChildren() : array<string|int, mixed>
- writeArray() : void
- writeLine() : void
- Outputs a single config reference line.
- writeNode() : void
Properties
$reference
private
string|null
$reference
= null
Methods
dump()
public
dump(ConfigurationInterface $configuration) : string
Parameters
- $configuration : ConfigurationInterface
Return values
stringdumpAtPath()
public
dumpAtPath(ConfigurationInterface $configuration, string $path) : string
Parameters
- $configuration : ConfigurationInterface
- $path : string
Return values
stringdumpNode()
public
dumpNode(NodeInterface $node) : string
Parameters
- $node : NodeInterface
Return values
stringgetPrototypeChildren()
private
getPrototypeChildren(PrototypedArrayNode $node) : array<string|int, mixed>
Parameters
- $node : PrototypedArrayNode
Return values
array<string|int, mixed>writeArray()
private
writeArray(array<string|int, mixed> $array, int $depth[, bool $asComment = false ]) : void
Parameters
- $array : array<string|int, mixed>
- $depth : int
- $asComment : bool = false
writeLine()
Outputs a single config reference line.
private
writeLine(string $text[, int $indent = 0 ]) : void
Parameters
- $text : string
- $indent : int = 0
writeNode()
private
writeNode(NodeInterface $node[, NodeInterface|null $parentNode = null ][, int $depth = 0 ][, bool $prototypedArray = false ]) : void
Parameters
- $node : NodeInterface
- $parentNode : NodeInterface|null = null
- $depth : int = 0
- $prototypedArray : bool = false