zhamao-framework/docs/api/ZM/Utils/ReflectionUtil.md
2022-08-23 15:43:37 +00:00

117 lines
1.6 KiB
Markdown

# ZM\Utils\ReflectionUtil
## getParameterClassName
```php
public function getParameterClassName(ReflectionParameter $parameter): string
```
### 描述
作者很懒,什么也没有说
### 参数
| 名称 | 类型 | 描述 |
| -------- | ---- | ----------- |
| parameter | ReflectionParameter | |
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| string | |
## variableToString
```php
public function variableToString(mixed $var): string
```
### 描述
作者很懒,什么也没有说
### 参数
| 名称 | 类型 | 描述 |
| -------- | ---- | ----------- |
| var | mixed | |
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| string | |
## isNonStaticMethod
```php
public function isNonStaticMethod(mixed $callback): bool
```
### 描述
作者很懒,什么也没有说
### 参数
| 名称 | 类型 | 描述 |
| -------- | ---- | ----------- |
| callback | mixed | |
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| bool | |
## getCallReflector
```php
public function getCallReflector(mixed $callback): ReflectionFunctionAbstract
```
### 描述
作者很懒,什么也没有说
### 参数
| 名称 | 类型 | 描述 |
| -------- | ---- | ----------- |
| callback | mixed | |
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| ReflectionFunctionAbstract | |
## getMethod
```php
public function getMethod(string $class, string $method): ReflectionMethod
```
### 描述
作者很懒,什么也没有说
### 参数
| 名称 | 类型 | 描述 |
| -------- | ---- | ----------- |
| class | string | |
| method | string | |
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| ReflectionMethod | |