Zhamao Framework  3.0.0-beta1
A high-performance chatbot + web framework
BindEvent类 参考
类 BindEvent 继承关系图:
[图例]
BindEvent 的协作图:
[图例]

Public 成员函数

 __construct (public string $event_class, public int $level=800)
 
 getLevel ()
 
 setLevel ($level)
 
- Public 成员函数 继承自 AnnotationBase
 __toString ()
 
 on (\Closure|callable|string $method)
 
 getIterator ()
 
 isInGroup (string $name)
 
 addGroup (string $name)
 
 getGroups ()
 

额外继承的成员函数

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

详细描述

Class BindEvent 通过注解绑定 EventProvider 支持的事件

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

自从
3.0.0

构造及析构函数说明

◆ __construct()

__construct ( public string  $event_class,
public int  $level = 800 
)
参数
string$event_class绑定事件的类型
参数
$event_class@Required()

成员函数说明

◆ getLevel()

getLevel ( )

实现了 Level.

◆ setLevel()

setLevel (   $level)

实现了 Level.


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