ExceptionDataCollector
extends DataCollector
in package
DataCollector.
Tags
Table of Contents
Properties
Methods
- __sleep() : array<string|int, mixed>
- __wakeup() : mixed
- collect() : mixed
- {@inheritdoc}
- getCode() : int
- getException() : Exception|FlattenException
- getMessage() : string
- getName() : string
- {@inheritdoc}
- getStatusCode() : int
- getTrace() : array<string|int, mixed>
- hasException() : bool
- reset() : mixed
- {@inheritdoc}
- 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
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
getCode()
public
getCode() : int
Return values
intgetException()
public
getException() : Exception|FlattenException
Return values
Exception|FlattenExceptiongetMessage()
public
getMessage() : string
Return values
stringgetName()
{@inheritdoc}
public
getName() : string
Return values
stringgetStatusCode()
public
getStatusCode() : int
Return values
intgetTrace()
public
getTrace() : array<string|int, mixed>
Return values
array<string|int, mixed>hasException()
public
hasException() : bool
Return values
boolreset()
{@inheritdoc}
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