PHP Class PHPComposter\PHPComposter\HookConfig

Mostrar archivo Open project: php-composter/php-composter Class Usage Examples

Protected Properties

Property Type Description
$config array Internal storage of the configuration data.

Public Methods

Method Description
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.

Method Details

addEntry() public static method

Add an entry to the configuration data.
Since: 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() public static method

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

Property Details

$config protected_oe static_oe property

Internal storage of the configuration data.
Since: 0.1.0
protected static array $config
return array