Skip to content

Commit

Permalink
change attribute name in SwitchOutputWorkflowAction
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Heimbach authored and solverat committed Oct 13, 2023
1 parent 352fbe0 commit 478d571
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,25 @@ class SwitchOutputWorkflowAction implements ActionInterface
{
use ActionTrait;

protected ?string $workflowId = null;
protected ?string $workflowName = null;

public function apply(bool $validationState, array $formData, int $ruleId): ReturnStackInterface
{
$data = [];
if ($validationState === true) {
$data['workflowId'] = $this->getWorkflowId();
$data['workflowName'] = $this->getWorkflowName();
}

return new SimpleReturnStack('switchOutputWorkflow', $data);
}

public function getWorkflowId(): ?string
public function getWorkflowName(): ?string
{
return $this->workflowId;
return $this->workflowName;
}

public function setWorkflowId(string $workflowId): void
public function setWorkflowName(string $workflowName): void
{
$this->workflowId = $workflowId;
$this->workflowName = $workflowName;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function testSwitchingOutputWorkflow(FunctionalTester $I)
$actions = [
[
'type' => 'switchOutputWorkflow',
'workflowId' => $workflow->getId(),
'workflowName' => $workflow->getName(),
]
];

Expand Down

0 comments on commit 478d571

Please sign in to comment.