Having separate objects for validation results is unnecessary and overly complicated at this point, and we should wait to introduce that kind of complexity only when/if it's clearly needed. [MAILPOET-4191]
14 lines
329 B
PHP
14 lines
329 B
PHP
<?php declare(strict_types = 1);
|
|
|
|
namespace MailPoet\Automation\Engine\Workflows;
|
|
|
|
interface Action {
|
|
public function getKey(): string;
|
|
|
|
public function getName(): string;
|
|
|
|
public function hasRequiredSubjects(array $subjects): bool;
|
|
|
|
public function run(Workflow $workflow, WorkflowRun $workflowRun, Step $step): void;
|
|
}
|