W3cubDocs

/Symfony 4.1

DataCollector

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()
unserialize($data)
Data cloneVar(mixed $var)

Converts the variable into a serializable Data instance.

callable[] getCasters()

Details

serialize()

unserialize($data)

Parameters

$data

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

protected callable[] getCasters()

Return Value

callable[] The casters to add to the cloner

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/HttpKernel/DataCollector/DataCollector.html