Add name property to Step

[MAILPOET-4445]
This commit is contained in:
David Remer
2022-08-10 08:52:47 +03:00
committed by Veljko V
parent 1bf751978c
commit d4bc448ac6
7 changed files with 28 additions and 11 deletions

View File

@@ -78,6 +78,7 @@ class WorkflowBuilder {
private function delayStep(?int $delay, string $delayType): Step {
return new Step(
$this->uniqueId(),
null,
Step::TYPE_ACTION,
$this->delayAction->getKey(),
null,
@@ -91,6 +92,7 @@ class WorkflowBuilder {
private function segmentSubscribedTriggerStep(?int $segmentId = null): Step {
return new Step(
$this->uniqueId(),
null,
Step::TYPE_TRIGGER,
$this->segmentSubscribedTrigger->getKey(),
null,
@@ -103,6 +105,7 @@ class WorkflowBuilder {
private function sendEmailActionStep(): Step {
return new Step(
$this->uniqueId(),
__('Send email', 'mailpoet'),
Step::TYPE_ACTION,
$this->sendEmailAction->getKey(),
null,