summaryrefslogtreecommitdiff
path: root/src/Module/Module.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Module/Module.php')
-rw-r--r--src/Module/Module.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/Module/Module.php b/src/Module/Module.php
index 51672f9..48ba5f9 100644
--- a/src/Module/Module.php
+++ b/src/Module/Module.php
@@ -3,4 +3,16 @@
namespace PHPIAC\Module;
abstract class Module implements ModuleInterface
-{}
+{
+ /**
+ * Module constructor.
+ *
+ * @param array $config
+ */
+ public function __construct(array $config)
+ {
+ foreach ($config as $key => $value) {
+ $this->$key = $value;
+ }
+ }
+}