TimeDataCollector
extends DataCollector
in package
implements
LateDataCollectorInterface
DataCollector.
Tags
Interfaces, Classes, Traits and Enums
- LateDataCollectorInterface
- LateDataCollectorInterface.
Table of Contents
- $data : array<string|int, mixed>|Data
- $kernel : mixed
- $stopwatch : mixed
- $cloner : ClonerInterface
- __construct() : mixed
- __sleep() : array<string|int, mixed>
- __wakeup() : mixed
- collect() : mixed
- {@inheritdoc}
- getDuration() : float
- Gets the request elapsed time.
- getEvents() : array<string|int, StopwatchEvent>
- Gets the request events.
- getInitTime() : float
- Gets the initialization time.
- getName() : mixed
- {@inheritdoc}
- getStartTime() : float
- Gets the request time.
- isStopwatchInstalled() : bool
- lateCollect() : mixed
- Collects data as late as possible.
- reset() : mixed
- {@inheritdoc}
- serialize() : mixed
- setEvents() : mixed
- Sets the request events.
- unserialize() : 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
= []
$kernel
protected
mixed
$kernel
$stopwatch
protected
mixed
$stopwatch
$cloner
private
ClonerInterface
$cloner
Methods
__construct()
public
__construct([KernelInterface $kernel = null ][, Stopwatch $stopwatch = null ]) : mixed
Parameters
- $kernel : KernelInterface = null
- $stopwatch : Stopwatch = null
Return values
mixed —__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) : mixed
Parameters
Return values
mixed —getDuration()
Gets the request elapsed time.
public
getDuration() : float
Return values
float —The elapsed time
getEvents()
Gets the request events.
public
getEvents() : array<string|int, StopwatchEvent>
Return values
array<string|int, StopwatchEvent> —The request events
getInitTime()
Gets the initialization time.
public
getInitTime() : float
This is the time spent until the beginning of the request handling.
Return values
float —The elapsed time
getName()
{@inheritdoc}
public
getName() : mixed
Return values
mixed —getStartTime()
Gets the request time.
public
getStartTime() : float
Return values
float —isStopwatchInstalled()
public
isStopwatchInstalled() : bool
Return values
bool —whether or not the stopwatch component is installed
lateCollect()
Collects data as late as possible.
public
lateCollect() : mixed
Return values
mixed —reset()
{@inheritdoc}
public
reset() : mixed
Return values
mixed —serialize()
public
serialize() : mixed
Tags
Return values
mixed —setEvents()
Sets the request events.
public
setEvents(array<string|int, StopwatchEvent> $events) : mixed
Parameters
- $events : array<string|int, StopwatchEvent>
-
The request events
Return values
mixed —unserialize()
public
unserialize(mixed $data) : mixed
Parameters
- $data : mixed
Tags
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