abstract class DataCollector implements DataCollectorInterface

DataCollector.

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

Properties

protected $data

Methods

serialize() deprecated

No description

unserialize($data) deprecated

No description

cloneVar(mixed $var)

Converts the variable into a serializable Data instance.

callable[]
getCasters()

No description

__sleep()

No description

__wakeup()

No description

Details

at line 41
serialize() deprecated

deprecated since Symfony 4.3, store all the serialized state in the data property instead

at line 54
unserialize($data) deprecated

deprecated since Symfony 4.3, store all the serialized state in the data property instead

Parameters

$data

at line 71
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 91
protected callable[] getCasters()

Return Value

callable[] The casters to add to the cloner

at line 114
__sleep()

at line 124
__wakeup()