PHP Class Eloquent\Phony\Hook\FunctionHookGenerator

Datei anzeigen Open project: eloquent/phony Class Usage Examples

Public Methods

Method 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 method

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
return string The source code.

instance() public static method

Get the static instance of this generator.
public static instance ( ) : FunctionHookGenerator
return FunctionHookGenerator The static generator.