getStep()->getNextSteps() as $nextStep) { if (isset($visitedNextStepIdsMap[$nextStep->getId()])) { throw Exceptions::workflowStructureNotValid(__('Duplicate next step definition found', 'mailpoet')); } $visitedNextStepIdsMap[$nextStep->getId()] = true; } } public function complete(Workflow $workflow): void { } }