DiagnosticSelection
class DiagnosticSelection
Properties
| protected list<string> | $only | The normalized selectors diagnostics must match. |
|
| protected list<string> | $except | The normalized selectors diagnostics must not match. |
|
| protected list<list<string>> | $onlyConstraints | The normalized only constraints that must all match. |
Methods
Create a new diagnostic selection instance.
Create a new normalized diagnostic selection.
Add another selection constraint.
Normalize selection values.
Determine whether any criterion matches the diagnostic.
Determine whether a criterion matches the diagnostic.
Determine whether a criterion matches the diagnostic's package.
Details
at line 37
__construct(iterable $only = [], iterable $except = [], array $onlyConstraints = [])
Create a new diagnostic selection instance.
at line 68
static DiagnosticSelection
make(iterable $only = [], iterable $except = [])
Create a new normalized diagnostic selection.
at line 79
DiagnosticSelection
constrain(iterable $only = [], iterable $except = [])
Add another selection constraint.
at line 97
bool
matches(Diagnostic $diagnostic)
Determine whether a diagnostic matches the selection.
at line 118
static protected array
normalize(iterable $values)
Normalize selection values.
at line 133
protected bool
matchesAny(array $criteria, Diagnostic $diagnostic)
Determine whether any criterion matches the diagnostic.
at line 147
protected bool
matchesCriterion(string $criterion, Diagnostic $diagnostic)
Determine whether a criterion matches the diagnostic.
at line 158
protected bool
matchesPackage(string $criterion, Diagnostic $diagnostic)
Determine whether a criterion matches the diagnostic's package.