mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-18 13:14:52 +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 | |
|