class PlainTextFormatter (View source)

Format any value as plain text representation.

Properties

protected mixed $variable

Methods

__construct(mixed $variable)

Initialize the formatter with any value.

string
format($spaces = 4)

No description

string|null
renderVariableAsPlaintext(mixed $var, int $spaces = 4, int $continuationSpaces = 0)

Returns a suitable form of a variable (be it a string, array, object ...) for logfile output

string
renderKeyValue(mixed $key, mixed $value, int $spaces, int $continuationSpaces)

No description

Details

__construct(mixed $variable)

Initialize the formatter with any value.

Parameters

mixed $variable

string format($spaces = 4)

No description

Parameters

$spaces

Return Value

string

protected string|null renderVariableAsPlaintext(mixed $var, int $spaces = 4, int $continuationSpaces = 0)

Returns a suitable form of a variable (be it a string, array, object ...) for logfile output

Parameters

mixed $var

The variable

int $spaces

Indent for this var dump

int $continuationSpaces

Running total indentation (INTERNAL)

Return Value

string|null

text output

protected string renderKeyValue(mixed $key, mixed $value, int $spaces, int $continuationSpaces)

No description

Parameters

mixed $key
mixed $value
int $spaces
int $continuationSpaces

Return Value

string