HttpClientDataCollector
extends DataCollector
in package
implements
LateDataCollectorInterface
FinalYes
DataCollector.
Tags
Table of Contents
Interfaces
- LateDataCollectorInterface
- LateDataCollectorInterface.
Properties
- $data : array<string|int, mixed>|Data
- $clients : array<string|int, TraceableHttpClient>
- $cloner : mixed
Methods
- __sleep() : array<string|int, mixed>
- __wakeup() : mixed
- collect() : mixed
- {@inheritdoc}
- getClients() : array<string|int, mixed>
- getErrorCount() : int
- getName() : string
- {@inheritdoc}
- getRequestCount() : int
- lateCollect() : mixed
- Collects data as late as possible.
- registerClient() : mixed
- reset() : mixed
- cloneVar() : Data
- Converts the variable into a serializable Data instance.
- getCasters() : array<string|int, callable>
- collectOnClient() : array<string|int, mixed>
Properties
$data
protected
array<string|int, mixed>|Data
$data
= []
$clients
private
array<string|int, TraceableHttpClient>
$clients
= []
$cloner
private
mixed
$cloner
Methods
__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>__wakeup()
public
__wakeup() : mixed
collect()
{@inheritdoc}
public
collect(Request $request, Response $response[, Throwable $exception = null ]) : mixed
Parameters
getClients()
public
getClients() : array<string|int, mixed>
Return values
array<string|int, mixed>getErrorCount()
public
getErrorCount() : int
Return values
intgetName()
{@inheritdoc}
public
getName() : string
Return values
stringgetRequestCount()
public
getRequestCount() : int
Return values
intlateCollect()
Collects data as late as possible.
public
lateCollect() : mixed
registerClient()
public
registerClient(string $name, TraceableHttpClient $client) : mixed
Parameters
- $name : string
- $client : TraceableHttpClient
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
collectOnClient()
private
collectOnClient(TraceableHttpClient $client) : array<string|int, mixed>
Parameters
- $client : TraceableHttpClient