mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-07 00:35:36 +08:00
fix instant mode related files
This commit is contained in:
@@ -9,23 +9,32 @@ namespace ZM\Module;
|
||||
*/
|
||||
abstract class ModuleBase
|
||||
{
|
||||
/** @var string 模块名称 */
|
||||
protected $module_name;
|
||||
|
||||
/** @var array 事件列表 */
|
||||
protected $events = [];
|
||||
|
||||
public function __construct($module_name)
|
||||
/**
|
||||
* @param string $module_name 模块名称
|
||||
*/
|
||||
public function __construct(string $module_name)
|
||||
{
|
||||
$this->module_name = $module_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
* 获取模块名称
|
||||
* @return string
|
||||
*/
|
||||
public function getModuleName()
|
||||
{
|
||||
return $this->module_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取事件列表
|
||||
*/
|
||||
public function getEvents(): array
|
||||
{
|
||||
return $this->events;
|
||||
|
||||
Reference in New Issue
Block a user