AjaxDataCollector
extends DataCollector
in package
AjaxDataCollector.
Tags
Table of Contents
- $data : array<string|int, mixed>|Data
- $cloner : ClonerInterface
- $valueExporter : ValueExporter
- collect() : mixed
- getName() : mixed
- reset() : mixed
- serialize() : mixed
- unserialize() : mixed
- cloneVar() : Data
- Converts the variable into a serializable Data instance.
- getCasters() : array<string|int, callable>
- varToString() : string
- Converts a PHP variable to a string.
Properties
$data
protected
array<string|int, mixed>|Data
$data
= []
$cloner
private
ClonerInterface
$cloner
$valueExporter
private
ValueExporter
$valueExporter
Methods
collect()
public
collect(Request $request, Response $response[, Exception $exception = null ]) : mixed
Parameters
Return values
mixed —getName()
public
getName() : mixed
Return values
mixed —reset()
public
reset() : mixed
Return values
mixed —serialize()
public
serialize() : mixed
Return values
mixed —unserialize()
public
unserialize(mixed $data) : mixed
Parameters
- $data : mixed
Return values
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
Data —getCasters()
protected
getCasters() : array<string|int, callable>
Return values
array<string|int, callable> —The casters to add to the cloner
varToString()
Converts a PHP variable to a string.
protected
varToString(mixed $var) : string
Parameters
- $var : mixed
-
A PHP variable
Tags
Return values
string —The string representation of the variable