1 | <?php |
||
10 | class MethodTemplate implements TemplateInterface |
||
11 | { |
||
12 | use VisibilityTrait; |
||
13 | |||
14 | const TEMPLATE = ' |
||
15 | %s %s function %s(%s)%s |
||
16 | { |
||
17 | %s $this->__call("%s", func_get_args()); |
||
18 | } |
||
19 | '; |
||
20 | |||
21 | /** |
||
22 | * @param \ReflectionMethod $method |
||
23 | * @return string |
||
24 | */ |
||
25 | 11 | public static function generate(\Reflector $method): string |
|
29 | |||
30 | /** |
||
31 | * @param \ReflectionMethod $method |
||
32 | * @return string |
||
33 | */ |
||
34 | 11 | protected static function doGenerate(\ReflectionMethod $method): string |
|
70 | } |
||
71 |