Files
piratepoet/mailpoet/lib/Automation/Engine/Workflows/Action.php
John Oleksowicz da144a3778 Include all possibilities for validation
Although not required at the moment, validation could certainly involve
the current step as well as the workflow itself.

[MAILPOET-4191]
2022-04-18 09:10:23 +02:00

14 lines
349 B
PHP

<?php declare(strict_types = 1);
namespace MailPoet\Automation\Engine\Workflows;
interface Action {
public function getKey(): string;
public function getName(): string;
public function isValid(array $subjects, Step $step, Workflow $workflow): bool;
public function run(Workflow $workflow, WorkflowRun $workflowRun, Step $step): void;
}