Initial Version
This commit is contained in:
61
shared/lib/Module/ModuleInstanceInterface.php
Normal file
61
shared/lib/Module/ModuleInstanceInterface.php
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
namespace KTXF\Module;
|
||||
|
||||
interface ModuleInstanceInterface
|
||||
{
|
||||
/**
|
||||
* Get module version
|
||||
*/
|
||||
public function handle(): string;
|
||||
|
||||
/**
|
||||
* Get module version
|
||||
*/
|
||||
public function version(): string;
|
||||
|
||||
/**
|
||||
* Get module label
|
||||
*/
|
||||
public function label(): string;
|
||||
|
||||
/**
|
||||
* Get module description
|
||||
*/
|
||||
public function description(): string;
|
||||
|
||||
/**
|
||||
* Get module author
|
||||
*/
|
||||
public function author(): string;
|
||||
|
||||
/**
|
||||
* Install the module
|
||||
*/
|
||||
public function install(): void;
|
||||
|
||||
/**
|
||||
* Uninstall the module
|
||||
*/
|
||||
public function uninstall(): void;
|
||||
|
||||
/**
|
||||
* Upgrade the module
|
||||
*/
|
||||
public function upgrade(): void;
|
||||
|
||||
/**
|
||||
* Enable the module
|
||||
*/
|
||||
public function enable(): void;
|
||||
|
||||
/**
|
||||
* Disable the module
|
||||
*/
|
||||
public function disable(): void;
|
||||
|
||||
/**
|
||||
* Bootstrap the module when enabled
|
||||
*/
|
||||
public function boot(): void;
|
||||
}
|
||||
Reference in New Issue
Block a user