summaryrefslogtreecommitdiff
path: root/src/Task.php
blob: 598f55cd141fd54e6f4eb8414f003300e2457ff3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;
    }
}