CacheDataCollector
extends DataCollector
in package
implements
LateDataCollectorInterface
DataCollector.
Tags
Table of Contents
Interfaces
- LateDataCollectorInterface
- LateDataCollectorInterface.
Properties
- $data : array<string|int, mixed>|Data
- $cloner : mixed
- $instances : array<string|int, TraceableAdapter>
Methods
- __sleep() : array<string|int, mixed>
- __wakeup() : mixed
- addInstance() : mixed
- collect() : mixed
- {@inheritdoc}
- getCalls() : mixed
- Method returns all logged Cache call objects.
- getName() : string
- {@inheritdoc}
- getStatistics() : array<string|int, mixed>
- Method returns amount of logged Cache reads: "get" calls.
- getTotals() : array<string|int, mixed>
- Method returns the statistic totals.
- lateCollect() : mixed
- Collects data as late as possible.
- reset() : mixed
- cloneVar() : Data
- Converts the variable into a serializable Data instance.
- getCasters() : array<string|int, callable>
- calculateStatistics() : array<string|int, mixed>
- calculateTotalStatistics() : array<string|int, mixed>
Properties
$data
protected
array<string|int, mixed>|Data
$data
= []
$cloner
private
mixed
$cloner
$instances
private
array<string|int, TraceableAdapter>
$instances
= []
Methods
__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>__wakeup()
public
__wakeup() : mixed
addInstance()
public
addInstance(string $name, TraceableAdapter $instance) : mixed
Parameters
- $name : string
- $instance : TraceableAdapter
collect()
{@inheritdoc}
public
collect(Request $request, Response $response[, Throwable $exception = null ]) : mixed
Parameters
getCalls()
Method returns all logged Cache call objects.
public
getCalls() : mixed
getName()
{@inheritdoc}
public
getName() : string
Return values
stringgetStatistics()
Method returns amount of logged Cache reads: "get" calls.
public
getStatistics() : array<string|int, mixed>
Return values
array<string|int, mixed>getTotals()
Method returns the statistic totals.
public
getTotals() : array<string|int, mixed>
Return values
array<string|int, mixed>lateCollect()
Collects data as late as possible.
public
lateCollect() : mixed
reset()
public
reset() : 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
calculateStatistics()
private
calculateStatistics() : array<string|int, mixed>
Return values
array<string|int, mixed>calculateTotalStatistics()
private
calculateTotalStatistics() : array<string|int, mixed>