ValidatorDataCollector
extends DataCollector
in package
implements
LateDataCollectorInterface
DataCollector.
Tags
Table of Contents
Interfaces
- LateDataCollectorInterface
- LateDataCollectorInterface.
Properties
- $data : array<string|int, mixed>|Data
- $cloner : mixed
- $validator : mixed
Methods
- __construct() : mixed
- __sleep() : array<string|int, mixed>
- __wakeup() : mixed
- collect() : mixed
- {@inheritdoc}
- getCalls() : Data
- getName() : string
- {@inheritdoc}
- getViolationsCount() : int
- 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>
Properties
$data
protected
array<string|int, mixed>|Data
$data
= []
$cloner
private
mixed
$cloner
$validator
private
mixed
$validator
Methods
__construct()
public
__construct(TraceableValidator $validator) : mixed
Parameters
- $validator : TraceableValidator
__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
getCalls()
public
getCalls() : Data
Return values
DatagetName()
{@inheritdoc}
public
getName() : string
Return values
stringgetViolationsCount()
public
getViolationsCount() : int
Return values
intlateCollect()
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