Files
piratepoet/mailpoet/lib/Automation/Engine/Workflows/Action.php
John Oleksowicz 5227481a42 Revert to a simpler approach
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]
2022-04-18 09:10:23 +02:00

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;
}