getSteps() as $step) { if ($step->getType() === 'trigger') { return; } } throw Exceptions::workflowStructureNotValid(__('There must be at least one trigger in the workflow.', 'mailpoet'), self::RULE_ID); } public function visitNode(Workflow $workflow, WorkflowNode $node): void { } public function complete(Workflow $workflow): void { } }