summaryrefslogtreecommitdiff
path: root/src/Task.php
diff options
context:
space:
mode:
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;
+ }
+}