Although not required at the moment, validation could certainly involve the current step as well as the workflow itself. [MAILPOET-4191]
14 lines
349 B
PHP
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;
|
|
}
|