aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/ModuleManagementInterface.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2022-06-30 08:16:44 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2022-06-30 08:16:44 +0000
commiteccec27f081020f42f20508b88ad420c0f489907 (patch)
tree038d598ada4f561cd65cf18f4688ce299a940a80 /lib/classes/ModuleManagementInterface.php
parent3cfe3110dc44352a1a91a8fa00ab9a2b35a73306 (diff)
fix errors in mvv models, fixes #1230
Closes #1230 Merge request studip/studip!741
Diffstat (limited to 'lib/classes/ModuleManagementInterface.php')
-rw-r--r--lib/classes/ModuleManagementInterface.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/classes/ModuleManagementInterface.php b/lib/classes/ModuleManagementInterface.php
new file mode 100644
index 0000000..b5594c2
--- /dev/null
+++ b/lib/classes/ModuleManagementInterface.php
@@ -0,0 +1,14 @@
+<?php
+/**
+ * This interface ensures that all objects of ModuleManagementModel have
+ * the same constructor signature. Otherwise, we can not guarantee that the
+ * use of "new static()" in ModuleManagement code will always do the right
+ * things.
+ *
+ * @author Jan-Hendrik Willms <tleilax+studip@gmail.com>
+ * @license GPL2 or any later version
+ */
+interface ModuleManagementInterface
+{
+ public function __construct($id = null);
+}