|
Zhamao Framework 3.2.4
A high-performance chatbot + web framework
|
静态 Public 成员函数 | |
| static | getParameterClassName (\ReflectionParameter $parameter) |
| static | variableToString (mixed $var) |
| static | isNonStaticMethod (callable|array|string $callback) |
| static | getCallReflector (callable|string $callback) |
| static | getMethod (string $class, string $method) |
|
static |
获取传入的回调的反射实例
如果传入的是类方法,则会返回 ReflectionMethod 实例 否则将返回 ReflectionFunction 实例
可传入实现了 __invoke 的类
| callable | string | $callback | 回调 |
ReflectionException
|
static |
获取传入的类方法,并确保其可访问
请不要滥用此方法!!!
| string | $class | 类名 |
| string | $method | 方法名 |
ReflectionException
|
static |
获取参数的类名(如有)
| \ReflectionParameter | $parameter | 参数 |
|
static |
判断传入的回调是否为任意类的非静态方法
| callable | string | $callback | 回调 |
ReflectionException
|
static |
将传入变量转换为字符串