CliDumper
class CliDumper extends AbstractDumper
CliDumper dumps variables for command line output.
Properties
static | $defaultOutput | ||
static | $defaultColors |
Methods
__construct(callable|resource|string|null $output = null, string $charset = null)
No description
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
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.
Details
at line line 57
__construct(callable|resource|string|null $output = null, string $charset = null)
in AbstractDumper at line line 56
callable|resource|string
setOutput(callable|resource|string $output)
Sets the output destination of the dumps.
in AbstractDumper at line line 81
string
setCharset(string $charset)
Sets the default character encoding to use for non-UTF8 strings.
in AbstractDumper at line line 100
string
setIndentPad(string $pad)
Sets the indentation pad string.
in AbstractDumper at line line 114
dump(Data $data, callable|resource|string|null $output = null)
Dumps a Data object.
at line line 82
setColors(bool $colors)
Enables/disables colored output.
at line line 92
setMaxStringWidth(int $maxStringWidth)
Sets the maximum number of characters per line for dumped strings.
at line line 102
setStyles(array $styles)
Configures styles.
at line line 110
dumpScalar(Cursor $cursor, string $type, scalar $value)
Dumps a scalar value.
at line line 160
dumpString(Cursor $cursor, string $str, bool $bin, int $cut)
Dumps a string.
at line line 240
enterHash(Cursor $cursor, int $type, string $class, bool $hasChild)
Dumps while entering an hash.
at line line 273
leaveHash(Cursor $cursor, int $type, string $class, bool $hasChild, int $cut)
Dumps while leaving an hash.