enum case consistency, wip creating service

This commit is contained in:
2025-03-31 13:51:02 +00:00
parent 75f2ecb7bf
commit d150f57c8f
16 changed files with 150 additions and 113 deletions

View File

@@ -4,8 +4,16 @@ namespace App\Data\Deployments;
class Step
{
public string $script;
public function __construct(
public string $name = 'Step',
string|callable $script = 'echo "Incomplete Step"',
) {
//
if (is_callable($script)) {
$this->script = $script();
} else {
$this->script = $script;
}
}
}