function CliDumper::dumpEllipsis
Dumps an ellipsis for cut children.
Parameters
bool $hasChild When the dump of the hash has child item:
int $cut The number of items the hash has been cut by:
2 calls to CliDumper::dumpEllipsis()
- CliDumper::leaveHash in vendor/
symfony/ var-dumper/ Dumper/ CliDumper.php - Dumps while leaving an hash.
- HtmlDumper::leaveHash in vendor/
symfony/ var-dumper/ Dumper/ HtmlDumper.php - Dumps while leaving an hash.
File
-
vendor/
symfony/ var-dumper/ Dumper/ CliDumper.php, line 329
Class
- CliDumper
- CliDumper dumps variables for command line output.
Namespace
Symfony\Component\VarDumper\DumperCode
protected function dumpEllipsis(Cursor $cursor, bool $hasChild, int $cut) : void {
if ($cut) {
$this->line .= ' …';
if (0 < $cut) {
$this->line .= $cut;
}
if ($hasChild) {
$this->dumpLine($cursor->depth + 1);
}
}
}