class CliDumper extends AbstractDumper
CliDumper dumps variables for command line output.
static | $defaultOutput | |
static | $defaultColors |
__construct(callable|resource|string|null $output = null, string $charset = null) | ||
callable|resource|string | setOutput(callable|resource|string $output) Sets the output destination of the dumps. | from AbstractDumper |
string | setCharset(string $charset) Sets the default character encoding to use for non-UTF8 strings. | from AbstractDumper |
string | setIndentPad(string $pad) Sets the indentation pad string. | from AbstractDumper |
dump(Data $data, callable|resource|string|null $output = null) Dumps a Data object. | from AbstractDumper | |
setColors(bool $colors) Enables/disables colored output. | ||
setMaxStringWidth(int $maxStringWidth) Sets the maximum number of characters per line for dumped strings. | ||
setStyles(array $styles) Configures styles. | ||
dumpScalar(Cursor $cursor, string $type, scalar $value) Dumps a scalar value. | ||
dumpString(Cursor $cursor, string $str, bool $bin, int $cut) Dumps a string. | ||
enterHash(Cursor $cursor, int $type, string $class, bool $hasChild) Dumps while entering an hash. | ||
leaveHash(Cursor $cursor, int $type, string $class, bool $hasChild, int $cut) Dumps while leaving an hash. |
Sets the output destination of the dumps.
Sets the default character encoding to use for non-UTF8 strings.
Sets the indentation pad string.
Dumps a Data object.
Enables/disables colored output.
Sets the maximum number of characters per line for dumped strings.
Configures styles.
Dumps a scalar value.
Dumps a string.
Dumps while entering an hash.
Dumps while leaving an hash.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/VarDumper/Dumper/CliDumper.html