class AbstractDumper implements DataDumperInterface, DumperInterface
Abstract mechanism for dumping a Data object.
DUMP_LIGHT_ARRAY | |
DUMP_STRING_LENGTH | |
DUMP_COMMA_SEPARATOR | |
DUMP_TRAILING_COMMA |
static | $defaultOutput |
__construct(callable|resource|string|null $output = null, string $charset = null, int $flags) | ||
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. | |
dump(Data $data, callable|resource|string|true|null $output = null) Dumps a Data object. |
callable|resource|string|null | $output | A line dumper callable, an opened stream or an output path, defaults to static::$defaultOutput |
string | $charset | The default character encoding to use for non-UTF8 strings |
int | $flags | A bit field of static::DUMP_* constants to fine tune dumps representation |
Sets the output destination of the dumps.
callable|resource|string | $output | A line dumper callable, an opened stream or an output path |
callable|resource|string | The previous output destination |
Sets the default character encoding to use for non-UTF8 strings.
string | $charset | The default character encoding to use for non-UTF8 strings |
string | The previous charset |
Sets the indentation pad string.
string | $pad | A string the will be prepended to dumped lines, repeated by nesting level |
string | The indent pad |
Dumps a Data object.
Data | $data | |
callable|resource|string|true|null | $output | A line dumper callable, an opened stream, an output path or true to return the dump |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/VarDumper/Dumper/AbstractDumper.html