mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-12 11:15:34 +08:00
35 lines
507 B
Markdown
35 lines
507 B
Markdown
|
|
# ZM\Event\EventTracer
|
|||
|
|
|
|||
|
|
## getCurrentEvent
|
|||
|
|
|
|||
|
|
```php
|
|||
|
|
public function getCurrentEvent(): null|AnnotationBase
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
### 描述
|
|||
|
|
|
|||
|
|
获取当前注解事件的注解类,如CQCommand对象
|
|||
|
|
|
|||
|
|
### 返回
|
|||
|
|
|
|||
|
|
| 类型 | 描述 |
|
|||
|
|
| ---- | ----------- |
|
|||
|
|
| null|AnnotationBase | |
|
|||
|
|
|
|||
|
|
|
|||
|
|
## getCurrentEventMiddlewares
|
|||
|
|
|
|||
|
|
```php
|
|||
|
|
public function getCurrentEventMiddlewares(): null|array|mixed
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
### 描述
|
|||
|
|
|
|||
|
|
获取当前注解事件的中间件列表
|
|||
|
|
|
|||
|
|
### 返回
|
|||
|
|
|
|||
|
|
| 类型 | 描述 |
|
|||
|
|
| ---- | ----------- |
|
|||
|
|
| null|array|mixed | |
|