DataCollector
in package
implements
DataCollectorInterface
AbstractYes
DataCollector.
Children of this class must store the collected data in the data property.
Tags
Table of Contents
Interfaces
- DataCollectorInterface
- DataCollectorInterface.
Properties
Methods
- __sleep() : array<string|int, mixed>
- __wakeup() : mixed
- cloneVar() : Data
- Converts the variable into a serializable Data instance.
- getCasters() : array<string|int, callable>
Properties
$data
protected
array<string|int, mixed>|Data
$data
= []
$cloner
private
mixed
$cloner
Methods
__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>__wakeup()
public
__wakeup() : 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