PHP Класс pchRunner, php-commit-hooks

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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.

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

Initilizes instance properties.
public __construct ( ) : void
Результат void

register() публичный Метод

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
Результат void

run() публичный Метод

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
Результат void

setReporter() публичный Метод

Set the reporter used to report the issues found by the registered checks.
public setReporter ( pchReporter $reporter ) : void
$reporter pchReporter
Результат void

Описание свойств

$checks защищенное свойство

List of checks registered in the runner and executed by the runner.
protected array $checks
Результат array

$reporter защищенное свойство

Reporter used to report issues found by the checks.
protected pchReported $reporter
Результат pchReported