aboutsummaryrefslogtreecommitdiffstats
path: root/imperium/Action/Todo.php
diff options
context:
space:
mode:
Diffstat (limited to 'imperium/Action/Todo.php')
-rw-r--r--imperium/Action/Todo.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/imperium/Action/Todo.php b/imperium/Action/Todo.php
new file mode 100644
index 0000000..110be62
--- /dev/null
+++ b/imperium/Action/Todo.php
@@ -0,0 +1,32 @@
+<?php
+
+
+namespace Imperium\Action;
+
+
+use DI\DependencyException;
+use DI\NotFoundException;
+use Imperium\Exception\Kedavra;
+use Imperium\Model\Model;
+
+class Todo extends Model
+{
+ protected $table = "toto";
+
+ protected $todo = true;
+
+ /**
+ *
+ * Create the table
+ *
+ * @return bool
+ *
+ * @throws Kedavra
+ * @throws DependencyException
+ * @throws NotFoundException
+ */
+ public static function generate(): bool
+ {
+ return static::query()->connexion()->execute(static::$create_todo);
+ }
+} \ No newline at end of file