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
Subject.php
28 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\Data\Field; |
| 9 | use MailPoet\Automation\Engine\Data\Subject as SubjectData; |
| 10 | use MailPoet\Validator\Schema\ObjectSchema; |
| 11 | |
| 12 | /** |
| 13 | * @template-covariant T of Payload |
| 14 | */ |
| 15 | interface Subject { |
| 16 | public function getKey(): string; |
| 17 | |
| 18 | public function getName(): string; |
| 19 | |
| 20 | public function getArgsSchema(): ObjectSchema; |
| 21 | |
| 22 | /** @return Field[] */ |
| 23 | public function getFields(): array; |
| 24 | |
| 25 | /** @return T */ |
| 26 | public function getPayload(SubjectData $subjectData): Payload; |
| 27 | } |
| 28 |