abstract class DataCollector implements DataCollectorInterface, Serializable

DataCollector.

Children of this class must store the collected data in the data property.

Properties

protected $data

Methods

serialize()

No description

unserialize($data)

No description

cloneVar(mixed $var)

Converts the variable into a serializable Data instance.

callable[]
getCasters()

No description

Details

at line 37
serialize()

at line 42
unserialize($data)

Parameters

$data

at line 57
protected Data cloneVar(mixed $var)

Converts the variable into a serializable Data instance.

This array can be displayed in the template using the VarDumper component.

Parameters

mixed $var

Return Value

Data

at line 77
protected callable[] getCasters()

Return Value

callable[] The casters to add to the cloner