DebugProcessor
in package
implements
DebugLoggerInterface, ResetInterface
Interfaces, Classes and Traits
- DebugLoggerInterface
- DebugLoggerInterface.
- ResetInterface
- Provides a way to reset an object to its initial state.
Table of Contents
- $errorCount : mixed
- $records : mixed
- $requestStack : mixed
- __construct() : mixed
- __invoke() : mixed
- clear() : mixed
- Removes all log records.
- countErrors() : int
- Returns the number of errors.
- getLogs() : array<string|int, mixed>
- Returns an array of logs.
- reset() : mixed
Properties
$errorCount
private
mixed
$errorCount
= []
$records
private
mixed
$records
= []
$requestStack
private
mixed
$requestStack
Methods
__construct()
public
__construct([RequestStack|null $requestStack = null ]) : mixed
Parameters
- $requestStack : RequestStack|null = null
Return values
mixed —__invoke()
public
__invoke(array<string|int, mixed> $record) : mixed
Parameters
- $record : array<string|int, mixed>
Return values
mixed —clear()
Removes all log records.
public
clear() : mixed
Return values
mixed —countErrors()
Returns the number of errors.
public
countErrors([Request|null $request = null ]) : int
Parameters
- $request : Request|null = null
Return values
int —getLogs()
Returns an array of logs.
public
getLogs([Request|null $request = null ]) : array<string|int, mixed>
Parameters
- $request : Request|null = null
Return values
array<string|int, mixed> —reset()
public
reset() : mixed