mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-03 14:55:36 +08:00
31 lines
467 B
PHP
31 lines
467 B
PHP
<?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;
|
|
}
|
|
} |