PHP Class Eloquent\Phony\Hook\FunctionHookGenerator

Afficher le fichier Open project: eloquent/phony Class Usage Examples

Méthodes publiques

Méthode Description
generateHook ( string $name, string $namespace, array $signature ) : string Generate the source code for a function hook.
instance ( ) : FunctionHookGenerator Get the static instance of this generator.

Method Details

generateHook() public méthode

Generate the source code for a function hook.
public generateHook ( string $name, string $namespace, array $signature ) : string
$name string The function name.
$namespace string The namespace.
$signature array
Résultat string The source code.

instance() public static méthode

Get the static instance of this generator.
public static instance ( ) : FunctionHookGenerator
Résultat FunctionHookGenerator The static generator.