zhamao-framework/docs/api/ZM/Event/EventTracer.md
2022-03-27 16:42:36 +08:00

35 lines
507 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ZM\Event\EventTracer
## getCurrentEvent
```php
public function getCurrentEvent(): null|AnnotationBase
```
### 描述
获取当前注解事件的注解类如CQCommand对象
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| null|AnnotationBase | |
## getCurrentEventMiddlewares
```php
public function getCurrentEventMiddlewares(): null|array|mixed
```
### 描述
获取当前注解事件的中间件列表
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| null|array|mixed | |