LoggingViolationReporter
in package
implements
ViolationReporter
FinalYes
Passes each violation on to a logger right away, with the same message and context as before violations existed.
Table of Contents
Interfaces
- ViolationReporter
- Reports the violations found in the documentation source, each implementation in its own way.
Properties
- $logger : LoggerInterface
Methods
- __construct() : mixed
- report() : void
Properties
$logger read-only
private
LoggerInterface
$logger
Methods
__construct()
public
__construct(LoggerInterface $logger) : mixed
Parameters
- $logger : LoggerInterface
report()
public
report(Violation $violation) : void
Parameters
- $violation : Violation