Documentation

CacheDataCollector extends DataCollector
in package
implements LateDataCollectorInterface

DataCollector.

Tags
author

Aaron Scherer aequasi@gmail.com

author

Tobias Nyholm tobias.nyholm@gmail.com

final

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

Methods

__sleep()

public __sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>

__wakeup()

public __wakeup() : mixed
Return values
mixed

collect()

{@inheritdoc}

public collect(Request $request, Response $response[, Throwable|null $exception = null ]) : mixed
Parameters
$request : Request
$response : Response
$exception : Throwable|null = null
Return values
mixed

getCalls()

Method returns all logged Cache call objects.

public getCalls() : mixed
Return values
mixed

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

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>
Return values
array<string|int, mixed>

Search results