mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-20 23:25:35 +08:00
update api docs
This commit is contained in:
@@ -1,9 +1,26 @@
|
||||
# ZM\Module\QQBot
|
||||
|
||||
## handleByEvent
|
||||
|
||||
```php
|
||||
public function handleByEvent(): mixed
|
||||
```
|
||||
|
||||
### 描述
|
||||
|
||||
作者很懒,什么也没有说
|
||||
|
||||
### 返回
|
||||
|
||||
| 类型 | 描述 |
|
||||
| ---- | ----------- |
|
||||
| mixed | |
|
||||
|
||||
|
||||
## handle
|
||||
|
||||
```php
|
||||
public function handle(mixed $data, int $level): mixed
|
||||
public function handle(array|Iterator $data, int $level): mixed
|
||||
```
|
||||
|
||||
### 描述
|
||||
@@ -14,8 +31,8 @@ public function handle(mixed $data, int $level): mixed
|
||||
|
||||
| 名称 | 类型 | 描述 |
|
||||
| -------- | ---- | ----------- |
|
||||
| data | mixed | |
|
||||
| level | int | |
|
||||
| data | array|Iterator | 数据包 |
|
||||
| level | int | 递归等级 |
|
||||
|
||||
### 返回
|
||||
|
||||
@@ -27,7 +44,7 @@ public function handle(mixed $data, int $level): mixed
|
||||
## dispatchBeforeEvents
|
||||
|
||||
```php
|
||||
public function dispatchBeforeEvents(mixed $data, mixed $time): ZM\Event\EventDispatcher
|
||||
public function dispatchBeforeEvents(array|Iterator $data, string $time): ZM\Event\EventDispatcher
|
||||
```
|
||||
|
||||
### 描述
|
||||
@@ -38,8 +55,8 @@ public function dispatchBeforeEvents(mixed $data, mixed $time): ZM\Event\EventDi
|
||||
|
||||
| 名称 | 类型 | 描述 |
|
||||
| -------- | ---- | ----------- |
|
||||
| data | mixed | |
|
||||
| time | mixed | |
|
||||
| data | array|Iterator | 数据包 |
|
||||
| time | string | 类型(pre或post) |
|
||||
|
||||
### 返回
|
||||
|
||||
@@ -51,7 +68,7 @@ public function dispatchBeforeEvents(mixed $data, mixed $time): ZM\Event\EventDi
|
||||
## dispatchEvents
|
||||
|
||||
```php
|
||||
public function dispatchEvents(mixed $data): mixed
|
||||
public function dispatchEvents(array|Iterator $data): mixed
|
||||
```
|
||||
|
||||
### 描述
|
||||
@@ -62,7 +79,7 @@ public function dispatchEvents(mixed $data): mixed
|
||||
|
||||
| 名称 | 类型 | 描述 |
|
||||
| -------- | ---- | ----------- |
|
||||
| data | mixed | |
|
||||
| data | array|Iterator | 数据包 |
|
||||
|
||||
### 返回
|
||||
|
||||
@@ -71,6 +88,29 @@ public function dispatchEvents(mixed $data): mixed
|
||||
| mixed | |
|
||||
|
||||
|
||||
## dispatchAfterEvents
|
||||
|
||||
```php
|
||||
public function dispatchAfterEvents(mixed $data): ZM\Event\EventDispatcher
|
||||
```
|
||||
|
||||
### 描述
|
||||
|
||||
作者很懒,什么也没有说
|
||||
|
||||
### 参数
|
||||
|
||||
| 名称 | 类型 | 描述 |
|
||||
| -------- | ---- | ----------- |
|
||||
| data | mixed | 分发事件数据包 |
|
||||
|
||||
### 返回
|
||||
|
||||
| 类型 | 描述 |
|
||||
| ---- | ----------- |
|
||||
| ZM\Event\EventDispatcher | |
|
||||
|
||||
|
||||
## dispatchAPIResponse
|
||||
|
||||
```php
|
||||
|
||||
Reference in New Issue
Block a user