PHP 클래스 pchSvnKeywordsCheck, php-commit-hooks

Implements a check for required keywords on the modified or added files.
상속: extends pchCheck
파일 보기 프로젝트 열기: kore/php-commit-hooks 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$keywords array For each file type an array of keywords can be configured, each associated with a list of contained texts in the property with the name of the keyword.

공개 메소드들

메소드 설명
__construct ( array $keywords = null ) : void Construct from optional keywords configuration
checkKeywords ( pchRepository $repository, string $file ) : array Check keywords for a single file
validate ( pchRepository $repository ) : void Validate the current check

메소드 상세

__construct() 공개 메소드

Construct from optional keywords configuration
public __construct ( array $keywords = null ) : void
$keywords array
리턴 void

checkKeywords() 공개 메소드

Check the keywords, as specified in the configuration, for one single file.
public checkKeywords ( pchRepository $repository, string $file ) : array
$repository pchRepository
$file string
리턴 array

validate() 공개 메소드

Validate the check on the specified repository. Returns an array of found issues.
public validate ( pchRepository $repository ) : void
$repository pchRepository
리턴 void

프로퍼티 상세

$keywords 보호되어 있는 프로퍼티

For each file type an array of keywords can be configured, each associated with a list of contained texts in the property with the name of the keyword.
protected array $keywords
리턴 array