CompositeViolationReporter
in package
implements
ViolationReporter
FinalYes
Passes each violation on to all the given reporters, for example to log it and to annotate a pull request.
Table of Contents
Interfaces
- ViolationReporter
- Reports the violations found in the documentation source, each implementation in its own way.
Properties
- $reporters : iterable<string|int, mixed>
Methods
- __construct() : mixed
- report() : void
Properties
$reporters read-only
private
iterable<string|int, mixed>
$reporters
Methods
__construct()
public
__construct(iterable<string|int, ViolationReporter> $reporters) : mixed
Parameters
- $reporters : iterable<string|int, ViolationReporter>
report()
public
report(Violation $violation) : void
Parameters
- $violation : Violation