RuleReporter
in package
FinalYes
Collects the findings of one rule.
Table of Contents
Methods
- __construct() : mixed
- context() : ValidationContext
- error() : void
- info() : void
- messages() : array<int, ValidationMessage>
- warning() : void
Methods
__construct()
public
__construct(string $code, ValidationLevel $level, ValidationContext $context, string $namespace, string $fallback) : mixed
Parameters
- $code : string
- $level : ValidationLevel
- $context : ValidationContext
- $namespace : string
- $fallback : string
context()
public
context() : ValidationContext
Return values
ValidationContexterror()
public
error([string|null $bt = null ][, string|null $path = null ][, array<string, string|int> $replace = [] ]) : void
Parameters
- $bt : string|null = null
- $path : string|null = null
- $replace : array<string, string|int> = []
info()
public
info([string|null $bt = null ][, string|null $path = null ][, array<string, string|int> $replace = [] ]) : void
Parameters
- $bt : string|null = null
- $path : string|null = null
- $replace : array<string, string|int> = []
messages()
public
messages() : array<int, ValidationMessage>
Return values
array<int, ValidationMessage>warning()
public
warning([string|null $bt = null ][, string|null $path = null ][, array<string, string|int> $replace = [] ]) : void
Parameters
- $bt : string|null = null
- $path : string|null = null
- $replace : array<string, string|int> = []