class CliDumper extends AbstractDumper
CliDumper dumps variables for command line output.
Constants
| DUMP_LIGHT_ARRAY | |
| DUMP_STRING_LENGTH |
Properties
| static | $defaultOutput | ||
| static | $defaultColors |
Methods
| __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. | 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. |
Details
__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|null $output = null)
Dumps a Data object.
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.
Please login to continue.