1 | <?php |
||
16 | abstract class ReflectionFactory |
||
17 | { |
||
18 | /** |
||
19 | * Creates a reflection for a given function. |
||
20 | * |
||
21 | * @param callable|string $function A callable or a string representing a class method (non-static, delimited by ::) |
||
22 | * |
||
23 | * @throws \ReflectionException |
||
24 | * |
||
25 | * @return \ReflectionFunction|\ReflectionMethod |
||
26 | */ |
||
27 | 9 | public static function create($function) : \ReflectionFunctionAbstract |
|
43 | } |
||
44 |