summaryrefslogtreecommitdiff
path: root/src/Task.php
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2021-04-18 15:09:51 +0200
committerDaniel Weipert <code@drogueronin.de>2021-04-18 15:09:51 +0200
commitc0ebe78089121c0ad23efb0af32c435bee543a3c (patch)
treedb5e9205bcd7181cfa41543ee8962e9d84cdb481 /src/Task.php
Initial commit
Diffstat (limited to 'src/Task.php')
-rw-r--r--src/Task.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/Task.php b/src/Task.php
new file mode 100644
index 0000000..598f55c
--- /dev/null
+++ b/src/Task.php
@@ -0,0 +1,27 @@
+<?php
+
+namespace PHPIAC;
+
+use PHPIAC\Module\ModuleInterface;
+
+class Task
+{
+ public function __construct(
+ public ModuleInterface $module,
+ public array $vars,
+ ) {}
+
+ public function setModule(ModuleInterface $module): self
+ {
+ $this->module = $module;
+
+ return $this;
+ }
+
+ public function setVars(array $vars): self
+ {
+ $this->vars = $vars;
+
+ return $this;
+ }
+}