DumpDataCollector
extends DataCollector
in package
implements
DataDumperInterface
DataCollector.
Tags
Table of Contents
Interfaces
- DataDumperInterface
- DataDumperInterface for dumping Data objects.
Properties
- $data : array<string|int, mixed>|Data
- $charset : string
- $cloner : mixed
- $clonesCount : int
- $clonesIndex : int
- $dataCount : int
- $dumper : mixed
- $fileLinkFormat : string|FileLinkFormatter|false
- $isCollected : bool
- $requestStack : mixed
- $rootRefs : array<string|int, mixed>
- $sourceContextProvider : mixed
- $stopwatch : mixed
Methods
- __clone() : mixed
- __construct() : mixed
- __destruct() : mixed
- __sleep() : array<string|int, mixed>
- __wakeup() : mixed
- collect() : mixed
- dump() : mixed
- getDumps() : array<string|int, mixed>
- getDumpsCount() : int
- getName() : string
- reset() : mixed
- cloneVar() : Data
- Converts the variable into a serializable Data instance.
- getCasters() : array<string|int, callable>
- doDump() : mixed
Properties
$data
protected
array<string|int, mixed>|Data
$data
= []
$charset
private
string
$charset
$cloner
private
mixed
$cloner
$clonesCount
private
int
$clonesCount
= 0
$clonesIndex
private
int
$clonesIndex
= 0
$dataCount
private
int
$dataCount
= 0
$dumper
private
mixed
$dumper
$fileLinkFormat
private
string|FileLinkFormatter|false
$fileLinkFormat
$isCollected
private
bool
$isCollected
= true
$requestStack
private
mixed
$requestStack
$rootRefs
private
array<string|int, mixed>
$rootRefs
$sourceContextProvider
private
mixed
$sourceContextProvider
$stopwatch
private
mixed
$stopwatch
= null
Methods
__clone()
public
__clone() : mixed
__construct()
public
__construct([Stopwatch $stopwatch = null ][, string|FileLinkFormatter $fileLinkFormat = null ][, string $charset = null ][, RequestStack $requestStack = null ][, DataDumperInterface|Connection $dumper = null ]) : mixed
Parameters
- $stopwatch : Stopwatch = null
- $fileLinkFormat : string|FileLinkFormatter = null
- $charset : string = null
- $requestStack : RequestStack = null
- $dumper : DataDumperInterface|Connection = null
__destruct()
public
__destruct() : mixed
__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>__wakeup()
public
__wakeup() : mixed
collect()
public
collect(Request $request, Response $response[, Throwable $exception = null ]) : mixed
Parameters
dump()
public
dump(Data $data) : mixed
Parameters
- $data : Data
getDumps()
public
getDumps(string $format[, int $maxDepthLimit = -1 ][, int $maxItemsPerDepth = -1 ]) : array<string|int, mixed>
Parameters
- $format : string
- $maxDepthLimit : int = -1
- $maxItemsPerDepth : int = -1
Return values
array<string|int, mixed>getDumpsCount()
public
getDumpsCount() : int
Return values
intgetName()
public
getName() : string
Return values
stringreset()
public
reset() : mixed
cloneVar()
Converts the variable into a serializable Data instance.
protected
cloneVar(mixed $var) : Data
This array can be displayed in the template using the VarDumper component.
Parameters
- $var : mixed
Return values
DatagetCasters()
protected
getCasters() : array<string|int, callable>
Return values
array<string|int, callable> —The casters to add to the cloner
doDump()
private
doDump(DataDumperInterface $dumper, Data $data, string $name, string $file, int $line) : mixed
Parameters
- $dumper : DataDumperInterface
- $data : Data
- $name : string
- $file : string
- $line : int