summaryrefslogtreecommitdiff
path: root/src/Task.php
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2021-04-18 21:46:12 +0200
committerDaniel Weipert <code@drogueronin.de>2021-04-18 21:46:12 +0200
commit82e4d1ca348748e8cdde86f65e62221968cabed5 (patch)
tree778e3be9a9b3fa8cfb6cda1a34230fdf402da997 /src/Task.php
parentc0ebe78089121c0ad23efb0af32c435bee543a3c (diff)
Slight refactoring
Diffstat (limited to 'src/Task.php')
-rw-r--r--src/Task.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/Task.php b/src/Task.php
index 598f55c..a5698ea 100644
--- a/src/Task.php
+++ b/src/Task.php
@@ -6,22 +6,22 @@ use PHPIAC\Module\ModuleInterface;
class Task
{
- public function __construct(
- public ModuleInterface $module,
- public array $vars,
- ) {}
+ public ModuleInterface $module;
+ /**
+ * Task constructor.
+ */
+ public function __construct() {}
+
+ /**
+ * @param ModuleInterface $module
+ *
+ * @return $this
+ */
public function setModule(ModuleInterface $module): self
{
$this->module = $module;
return $this;
}
-
- public function setVars(array $vars): self
- {
- $this->vars = $vars;
-
- return $this;
- }
}