Add basic workflow update controller with status change caps

[MAILPOET-4454]
This commit is contained in:
Jan Jakes
2022-06-29 15:49:14 +02:00
committed by Jan Jakeš
parent 92d55362b1
commit bb90ae97d0
3 changed files with 45 additions and 0 deletions

View File

@@ -61,6 +61,10 @@ class Workflow {
return $this->status;
}
public function setStatus(string $status): void {
$this->status = $status;
}
public function getCreatedAt(): DateTimeImmutable {
return $this->createdAt;
}