1 | <?php |
||
34 | class AbstractModule |
||
35 | { |
||
36 | |||
37 | private $moduleName; |
||
38 | |||
39 | /** |
||
40 | * @var \Tight\TightConfig Application settings |
||
41 | */ |
||
42 | private $appConfig; |
||
43 | |||
44 | /** |
||
45 | * @var \Tight\BaseConfig Module configuration |
||
46 | */ |
||
47 | private $moduleConfig; |
||
48 | |||
49 | public function __construct($name) { |
||
54 | |||
55 | /** |
||
56 | * Gets the module name |
||
57 | * @return string Module name |
||
58 | */ |
||
59 | public function getModuleName() { |
||
62 | |||
63 | /** |
||
64 | * Sets the module configuration |
||
65 | * @param \Tight\BaseConfig $conf Configuration |
||
66 | * @return \Tight\Modules\AbstractModule Fluent setter |
||
67 | */ |
||
68 | public function setConfig(\Tight\BaseConfig $conf) { |
||
72 | |||
73 | /** |
||
74 | * Gets the module configuration |
||
75 | * @return \Tight\BaseConfig Config |
||
76 | */ |
||
77 | public function getConfig() { |
||
80 | |||
81 | /** |
||
82 | * Gets the application configuration |
||
83 | * @return \Tight\TightConfig Tight app config |
||
84 | */ |
||
85 | public function getAppConfig() { |
||
88 | |||
89 | } |
||
90 |