PHP Класс Eloquent\Phony\Hook\FunctionHookGenerator

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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.

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

generateHook() публичный Метод

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
Результат string The source code.

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

Get the static instance of this generator.
public static instance ( ) : FunctionHookGenerator
Результат FunctionHookGenerator The static generator.