Action.php
11 months ago
Filter.php
2 years ago
Payload.php
3 years ago
Step.php
1 year ago
Subject.php
3 years ago
SubjectTransformer.php
2 years ago
Trigger.php
1 year ago
ValidationException.php
3 years ago
index.php
3 years ago
Action.php
23 lines
| 1 | <?php declare(strict_types = 1); |
| 2 | |
| 3 | namespace MailPoet\Automation\Engine\Integration; |
| 4 | |
| 5 | if (!defined('ABSPATH')) exit; |
| 6 | |
| 7 | |
| 8 | use MailPoet\Automation\Engine\Control\StepRunController; |
| 9 | use MailPoet\Automation\Engine\Data\Step; |
| 10 | use MailPoet\Automation\Engine\Data\StepRunArgs; |
| 11 | |
| 12 | interface Action extends \MailPoet\Automation\Engine\Integration\Step { |
| 13 | public function run(StepRunArgs $args, StepRunController $controller): void; |
| 14 | |
| 15 | /** |
| 16 | * Called when a step is duplicated to allow custom duplication logic. |
| 17 | * |
| 18 | * @param Step $step The step being duplicated |
| 19 | * @return Step The duplicated step (may be the same instance or a modified copy) |
| 20 | */ |
| 21 | public function onDuplicate(Step $step): Step; |
| 22 | } |
| 23 |