-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModuleInterface.php
81 lines (72 loc) · 1.33 KB
/
ModuleInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
/**
* Arikaim
*
* @link http://www.arikaim.com
* @copyright Copyright (c) Konstantin Atanasov <[email protected]>
* @license http://www.arikaim.com/license
*
*/
namespace Arikaim\Core\Interfaces;
/**
* Module interface
*/
interface ModuleInterface
{
/**
* Get module instance
*
* @return mixed|null
*/
public function getInstance();
/**
* Get module name
*
* @return string
*/
public function getModuleName(): string;
/**
* Set module name
*
* @return void
*/
public function setModuleName(string $name): void;
/**
* Boot module callback
*
* @return void
*/
public function boot();
/**
* Install module callbaxk
*
* @return void
*/
public function install();
/**
* Test module
*
* @return bool
*/
public function test();
/**
* Get etst error
*
* @return string|null
*/
public function getTestError(): ?string;
/**
* Set module config
*
* @param array $config
* @return void
*/
public function setConfig(array $config): void;
/**
* Get module config
*
* @param string|null $key
* @return array
*/
public function getConfig(?string $key = null): ?array;
}