CacheDataCollector
extends DataCollector
in package
implements
LateDataCollectorInterface
DataCollector.
Tags
Interfaces, Classes and Traits
- LateDataCollectorInterface
- LateDataCollectorInterface.
Table of Contents
- $data : array<string|int, mixed>|Data
- $cloner : ClonerInterface
- $instances : array<string|int, TraceableAdapter>
- __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
ClonerInterface
$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
Return values
mixed —addInstance()
public
addInstance(string $name, TraceableAdapter $instance) : mixed
Parameters
- $name : string
- $instance : TraceableAdapter
Return values
mixed —collect()
{@inheritdoc}
public
collect(Request $request, Response $response[, Throwable|null $exception = null ]) : mixed
Parameters
Return values
mixed —getCalls()
Method returns all logged Cache call objects.
public
getCalls() : mixed
Return values
mixed —getName()
{@inheritdoc}
public
getName() : string
Return values
string —getStatistics()
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
Return values
mixed —reset()
public
reset() : mixed
Return values
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
Data —getCasters()
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>