Add basic workflow step saving to workflow update API

[MAILPOET-4420]
This commit is contained in:
Jan Jakes
2022-07-15 14:40:10 +02:00
committed by Veljko V
parent 55fb3f6c82
commit 7da2d2f7c8
4 changed files with 58 additions and 0 deletions

View File

@@ -82,6 +82,11 @@ class Workflow {
return $this->steps;
}
/** @param array<string, Step> $steps */
public function setSteps(array $steps): void {
$this->steps = $steps;
}
public function getStep(string $id): ?Step {
return $this->steps[$id] ?? null;
}