CliDumper
class CliDumper extends AbstractDumper
CliDumper dumps variables for command line output.
Constants
DUMP_LIGHT_ARRAY |
|
DUMP_STRING_LENGTH |
|
DUMP_COMMA_SEPARATOR |
|
DUMP_TRAILING_COMMA |
|
Properties
static | $defaultOutput | ||
protected | $line | from AbstractDumper | |
protected | $lineDumper | from AbstractDumper | |
protected | $outputStream | from AbstractDumper | |
protected | $decimalPoint | from AbstractDumper | |
protected | $indentPad | from AbstractDumper | |
protected | $flags | from AbstractDumper | |
static | $defaultColors | ||
protected | $colors | ||
protected | $maxStringWidth | ||
protected | $styles | ||
static protected | $controlCharsRx | ||
static protected | $controlCharsMap | ||
protected | $collapseNextHash | ||
protected | $expandNextHash |
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.
from AbstractDumper
string
setCharset(string $charset)
Sets the default character encoding to use for non-UTF8 strings.
from AbstractDumper
from AbstractDumper
dumpLine(int $depth, $endOfValue = false)
Dumps the current line.
echoLine(string $line, int $depth, string $indentPad)
Generic line dumper callback.
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.
string
style(string $style, string $value, array $attr = array())
Decorates a value with some style.
bool
supportsColors()
No description
Details
callable|resource|string
setOutput(callable|resource|string $output)
Sets the output destination of the dumps.
setMaxStringWidth(int $maxStringWidth)
Sets the maximum number of characters per line for dumped strings.
leaveHash(Cursor $cursor, int $type, string $class, bool $hasChild, int $cut)
Dumps while leaving an hash.
protected
dumpEllipsis(Cursor $cursor, bool $hasChild, int $cut)
Dumps an ellipsis for cut children.