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

Показать файл Открыть проект

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

Метод Описание
validate ( pchRepository $repository ) : void Validate the current check

Защищенные методы

Метод Описание
getChangedFiles ( pchRepository $repository ) : array Returns an array of chanegd files
getFileContents ( pchRepository $repository, string $file ) : resource Get file contents as stream

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

getChangedFiles() защищенный Метод

Returns an array with the names of all files wich have been changed in the specified transaction / revision.
protected getChangedFiles ( pchRepository $repository ) : array
$repository pchRepository
Результат array

getFileContents() защищенный Метод

Return the contents of the specified file as a PHP stream
protected getFileContents ( pchRepository $repository, string $file ) : resource
$repository pchRepository
$file string
Результат resource

validate() абстрактный публичный Метод

Validate the check on the specified repository. Returns an array of found issues.
abstract public validate ( pchRepository $repository ) : void
$repository pchRepository
Результат void