FormatterInterface
in
Interface for formatters used by Debugger::exportVar()
Tags
Table of Contents
Methods
- dump() : string
- Convert a tree of NodeInterface objects into a plain text string.
- formatWrapper() : string
- Output a dump wrapper with location context.
Methods
dump()
Convert a tree of NodeInterface objects into a plain text string.
public
dump(NodeInterface $node) : string
Parameters
- $node : NodeInterface
-
The node tree to dump.
Return values
stringformatWrapper()
Output a dump wrapper with location context.
public
formatWrapper(string $contents, array<string|int, mixed> $location) : string
Parameters
- $contents : string
-
The contents to wrap and return
- $location : array<string|int, mixed>
-
The file and line the contents came from.