PHP 클래스 PHPComposter\PHPComposter\HookConfig

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

보호된 프로퍼티들

프로퍼티 타입 설명
$config array Internal storage of the configuration data.

공개 메소드들

메소드 설명
addEntry ( string $hook, string $method, integer $priority = 10 ) Add an entry to the configuration data.
getEntries ( string $hook ) : array Get the entries for a given Git hook.

메소드 상세

addEntry() 공개 정적인 메소드

Add an entry to the configuration data.
부터: 0.1.0
public static addEntry ( string $hook, string $method, integer $priority = 10 )
$hook string Name of the Git hook to add to.
$method string Fully qualified method name to add.
$priority integer Optional. Priority of the hook. Defaults to 10.

getEntries() 공개 정적인 메소드

Get the entries for a given Git hook.
부터: 0.1.0
public static getEntries ( string $hook ) : array
$hook string Git hook to retrieve the methods for.
리턴 array Array of fully qualified method names. Empty array if none.

프로퍼티 상세

$config 보호되어 있는 정적으로 프로퍼티

Internal storage of the configuration data.
부터: 0.1.0
protected static array $config
리턴 array