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

Implements a check for required keywords on the modified or added files.
Наследование: extends pchCheck
Показать файл Открыть проект Примеры использования класса

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

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