PHP 클래스 pchRunner, php-commit-hooks

파일 보기 프로젝트 열기: kore/php-commit-hooks 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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