zhamao-framework/docs/api/ZM/Annotation/AnnotationParser.md

101 lines
1.4 KiB
Markdown
Raw Normal View History

2022-03-27 16:42:36 +08:00
# ZM\Annotation\AnnotationParser
## __construct
```php
public function __construct(): mixed
```
### 描述
AnnotationParser constructor.
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| mixed | |
## registerMods
```php
public function registerMods(): mixed
```
### 描述
注册各个模块类的注解和模块level的排序
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| mixed | |
## addRegisterPath
```php
2022-04-02 17:31:48 +00:00
public function addRegisterPath(string $path, string $indoor_name): mixed
2022-03-27 16:42:36 +08:00
```
### 描述
作者很懒,什么也没有说
### 参数
| 名称 | 类型 | 描述 |
| -------- | ---- | ----------- |
2022-04-02 17:31:48 +00:00
| path | string | 注册解析注解的路径 |
| indoor_name | string | 起始命名空间的名称 |
2022-04-01 18:48:48 +08:00
2022-03-27 16:42:36 +08:00
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| mixed | |
## sortByLevel
```php
2022-04-02 17:31:48 +00:00
public function sortByLevel(array $events, string $class_name, string $prefix): mixed
2022-03-27 16:42:36 +08:00
```
### 描述
作者很懒,什么也没有说
### 参数
| 名称 | 类型 | 描述 |
| -------- | ---- | ----------- |
2022-04-02 17:31:48 +00:00
| events | array | 需要排序的 |
| class_name | string | 排序的类名 |
| prefix | string | 前缀 |
2022-04-01 18:48:48 +08:00
2022-03-27 16:42:36 +08:00
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| mixed | |
## verifyMiddlewares
```php
public function verifyMiddlewares(): mixed
```
### 描述
作者很懒,什么也没有说
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| mixed | |