PHP Class pchRunner, php-commit-hooks

Afficher le fichier Open project: kore/php-commit-hooks Class Usage Examples

Protected Properties

Свойство Type Description
$checks array List of checks registered in the runner and executed by the runner.
$reporter pchReported Reporter used to report issues found by the checks.

Méthodes publiques

Méthode Description
__construct ( ) : void Constructor for pchRunner
register ( pchCheck $check ) : void Register a check
run ( pchRepository $repository ) : void Run all checks and report them
setReporter ( pchReporter $reporter ) : void Set reporter

Method Details

__construct() public méthode

Initilizes instance properties.
public __construct ( ) : void
Résultat void

register() public méthode

Register a check, which will be executed by the runner. Each check will be called in the order they are registerd.
public register ( pchCheck $check ) : void
$check pchCheck
Résultat void

run() public méthode

Runs all registered checks, aggregates their found issues and passes them to the reporter, so the user will be notified in the configured way.
public run ( pchRepository $repository ) : void
$repository pchRepository
Résultat void

setReporter() public méthode

Set the reporter used to report the issues found by the registered checks.
public setReporter ( pchReporter $reporter ) : void
$reporter pchReporter
Résultat void

Property Details

$checks protected_oe property

List of checks registered in the runner and executed by the runner.
protected array $checks
Résultat array

$reporter protected_oe property

Reporter used to report issues found by the checks.
protected pchReported $reporter
Résultat pchReported