PlainTextFormatter
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
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.
string
format($spaces = 4)
No description
protected string
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
protected string
renderKeyValue(mixed $key, mixed $value, int $spaces, int $continuationSpaces)
No description