mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-06 00:05:36 +08:00
update to build 424 (2.6.0-alpha1)
This commit is contained in:
31
src/ZM/Module/ModuleBase.php
Normal file
31
src/ZM/Module/ModuleBase.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace ZM\Module;
|
||||
|
||||
/**
|
||||
* @since 2.6
|
||||
*/
|
||||
abstract class ModuleBase
|
||||
{
|
||||
protected $module_name;
|
||||
|
||||
protected $events = [];
|
||||
|
||||
public function __construct($module_name) {
|
||||
$this->module_name = $module_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getModuleName() {
|
||||
return $this->module_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getEvents(): array {
|
||||
return $this->events;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user