PHP Class pchReporterDispatcher, php-commit-hooks

Dispatches the report to any number of other reporters
Inheritance: extends pchReporter
Show file Open project: kore/php-commit-hooks

Protected Properties

Property Type Description
$reporters array List of reporters to dispatch to.

Public Methods

Method Description
__construct ( array $reporters ) : void Construct reporter dispatcher
report ( pchRepository $repository, array $issues ) : void Report occured issues

Method Details

__construct() public method

Construct dispatcher from an array with any number of "child" reporters, which will then be called with the reporting results.
public __construct ( array $reporters ) : void
$reporters array
return void

report() public method

Report occured issues, passed as an array.
public report ( pchRepository $repository, array $issues ) : void
$repository pchRepository
$issues array
return void

Property Details

$reporters protected property

List of reporters to dispatch to.
protected array $reporters
return array