# Zhamao Framework: BotEvent类 参考

BotEvent类 参考
类 BotEvent 继承关系图:
[图例]
BotEvent 的协作图:
[图例]

## Public 成员函数

| __construct (public ?string $type=null, public ?string $detail_type=null, public ?string $sub_type=null, public int $level=20)
| getLevel ()
| setLevel ($level)
Public 成员函数 继承自 AnnotationBase
| __toString ()
| on (\Closure|callable|string $method)
| getIterator ()
| isInGroup (string $name)
| addGroup (string $name)
| getGroups ()

## 静态 Public 成员函数

static | make (?string $type=null, ?string $detail_type=null, ?string $sub_type=null, int $level=20,)

## 额外继承的成员函数

成员变量 继承自 AnnotationBase
Closure string array | $method = ''
| $class = ''
array | $group = []

## 详细描述

机器人相关事件注解

@Annotation @Target("METHOD") @NamedArgumentConstructor()

## 构造及析构函数说明

## __construct()

__construct | ( | public ?string | $type = `null`,
|  | public ?string | $detail_type = `null`,
|  | public ?string | $sub_type = `null`,
|  | public int | $level = `20`
| ) |  |

## 成员函数说明

## getLevel()

getLevel | ( |  | ) |

实现了 Level.

## make()

static make | ( | ?string | $type = `null`,
|  | ?string | $detail_type = `null`,
|  | ?string | $sub_type = `null`,
|  | int | $level = `20`
| ) |  |

static

## setLevel()

setLevel | ( |  | $level | ) |

实现了 Level.

该类的文档由以下文件生成:

- src/ZM/Annotation/OneBot/BotEvent.php