Create templated workflows in draft status
MAILPOET-4264
This commit is contained in:
committed by
Veljko V
parent
25b9f3a876
commit
2bf59eab9a
@ -8,6 +8,7 @@ use MailPoet\Automation\Engine\Utils\Json;
|
||||
class Workflow {
|
||||
public const STATUS_ACTIVE = 'active';
|
||||
public const STATUS_INACTIVE = 'inactive';
|
||||
public const STATUS_DRAFT = 'draft';
|
||||
|
||||
/** @var int */
|
||||
private $id;
|
||||
@ -55,6 +56,10 @@ class Workflow {
|
||||
return $this->status;
|
||||
}
|
||||
|
||||
public function setDraft(): void {
|
||||
$this->status = self::STATUS_DRAFT;
|
||||
}
|
||||
|
||||
public function getCreatedAt(): DateTimeImmutable {
|
||||
return $this->createdAt;
|
||||
}
|
||||
|
Reference in New Issue
Block a user