Interface FormatterInterface
Interface for formatters used by Debugger::exportVar()
Namespace: Cake\Error\Debug
Method Summary
-
dump() public
Convert a tree of NodeInterface objects into a plain text string.
-
formatWrapper() public
Output a dump wrapper with location context.
Method Detail
dump() ¶ public
dump(Cake\Error\Debug\NodeInterface $node): string
Convert a tree of NodeInterface objects into a plain text string.
Parameters
-
Cake\Error\Debug\NodeInterface
$node The node tree to dump.
Returns
string
formatWrapper() ¶ public
formatWrapper(string $contents, array $location): string
Output a dump wrapper with location context.
Parameters
-
string
$contents The contents to wrap and return
-
array
$location The file and line the contents came from.
Returns
string