Fr3nch13/CakePHP Utilities

FormatterInterface

Interface for formatters used by Debugger::exportVar()

Tags
unstable

This interface is not stable and may change in the future.

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

formatWrapper()

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.

Return values
string

        
On this page

Search results