Files
zhamao-framework/src/ZM/Module/ModuleBase.php

34 lines
469 B
PHP
Raw Normal View History

2021-11-02 16:01:24 +08:00
<?php
declare(strict_types=1);
2021-11-02 16:01:24 +08:00
namespace ZM\Module;
/**
* @since 2.6
*/
abstract class ModuleBase
{
protected $module_name;
protected $events = [];
public function __construct($module_name)
{
2021-11-02 16:01:24 +08:00
$this->module_name = $module_name;
}
/**
* @return mixed
*/
public function getModuleName()
{
2021-11-02 16:01:24 +08:00
return $this->module_name;
}
public function getEvents(): array
{
2021-11-02 16:01:24 +08:00
return $this->events;
}
}