AbstractDumper
abstract class AbstractDumper implements DataDumperInterface, DumperInterface
Abstract mechanism for dumping a Data object.
Constants
DUMP_LIGHT_ARRAY |
|
DUMP_STRING_LENGTH |
|
DUMP_COMMA_SEPARATOR |
|
DUMP_TRAILING_COMMA |
|
Properties
static | $defaultOutput | ||
protected | $line | ||
protected | $lineDumper | ||
protected | $outputStream | ||
protected | $decimalPoint | ||
protected | $indentPad | ||
protected | $flags |
Methods
__construct(callable|resource|string|null $output = null, string $charset = null, int $flags = 0)
No description
callable|resource|string
setOutput(callable|resource|string $output)
Sets the output destination of the dumps.
string
setCharset(string $charset)
Sets the default character encoding to use for non-UTF8 strings.
string
setIndentPad(string $pad)
Sets the indentation pad string.
dumpLine(int $depth)
Dumps the current line.
echoLine(string $line, int $depth, string $indentPad)
Generic line dumper callback.
string
utf8Encode(string $s)
Converts a non-UTF-8 string to UTF-8.