8cedd8a18a
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
69 lines
1.1 KiB
PHP
69 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace KTXF\Module;
|
|
|
|
use KTXF\Module\Configuration\ModuleContextInterface;
|
|
|
|
interface ModuleInstanceInterface
|
|
{
|
|
/**
|
|
* Declare the integrations supplied by this module.
|
|
*/
|
|
public function configure(ModuleContextInterface $context): void;
|
|
|
|
/**
|
|
* 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;
|
|
}
|