AbstractDataCollector
in package
implements
IDataCollector, JsonSerializable
AbstractYes
Children of this class must store the collected data in the data property.
Tags
Table of Contents
Interfaces
- IDataCollector
- DataCollectorInterface.
- JsonSerializable
Properties
- $data : array<string|int, mixed>
Methods
- __sleep() : array<string|int, mixed>
- getName() : string
- Returns the name of the collector.
- jsonSerialize() : mixed
- reset() : void
- Reset the state of the profiler. By default it only empties the $this->data contents, but you can override this method to do additional cleaning.
Properties
$data
protected
array<string|int, mixed>
$data
= []
Methods
__sleep()
public
__sleep() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getName()
Returns the name of the collector.
public
getName() : string
Tags
Return values
stringjsonSerialize()
public
jsonSerialize() : mixed
Tags
Attributes
- #[ReturnTypeWillChange]
reset()
Reset the state of the profiler. By default it only empties the $this->data contents, but you can override this method to do additional cleaning.
public
reset() : void