function Data::dump
Dumps data with a DumperInterface dumper.
File
-
vendor/
symfony/ var-dumper/ Cloner/ Data.php, line 266
Class
- Data
- @author Nicolas Grekas <p@tchwork.com>
Namespace
Symfony\Component\VarDumper\ClonerCode
public function dump(DumperInterface $dumper) : void {
$refs = [
0,
];
$cursor = new Cursor();
$cursor->hashType = -1;
$cursor->attr = $this->context[SourceContextProvider::class] ?? [];
$label = $this->context['label'] ?? '';
if ($cursor->attr || '' !== $label) {
$dumper->dumpScalar($cursor, 'label', $label);
}
$cursor->hashType = 0;
$this->dumpItem($dumper, $cursor, $refs, $this->data[$this->position][$this->key]);
}