diff options
author | Daniel Weipert <code@drogueronin.de> | 2021-04-18 15:09:51 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2021-04-18 15:09:51 +0200 |
commit | c0ebe78089121c0ad23efb0af32c435bee543a3c (patch) | |
tree | db5e9205bcd7181cfa41543ee8962e9d84cdb481 /src/Task.php |
Initial commit
Diffstat (limited to 'src/Task.php')
-rw-r--r-- | src/Task.php | 27 |
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; + } +} |