diff --git a/mailpoet/lib/Automation/Engine/Workflows/Field.php b/mailpoet/lib/Automation/Engine/Workflows/Field.php new file mode 100644 index 0000000000..72c6cd1909 --- /dev/null +++ b/mailpoet/lib/Automation/Engine/Workflows/Field.php @@ -0,0 +1,60 @@ +key = $key; + $this->type = $type; + $this->name = $name; + $this->factory = $factory; + $this->args = $args; + } + + public function getKey(): string { + return $this->key; + } + + public function getType(): string { + return $this->type; + } + + public function getName(): string { + return $this->name; + } + + public function getFactory(): callable { + return $this->factory; + } + + public function getArgs(): array { + return $this->args; + } +} diff --git a/mailpoet/lib/Automation/Engine/Workflows/Subject.php b/mailpoet/lib/Automation/Engine/Workflows/Subject.php new file mode 100644 index 0000000000..2084f6d1bf --- /dev/null +++ b/mailpoet/lib/Automation/Engine/Workflows/Subject.php @@ -0,0 +1,14 @@ + */ + public function getFields(): array; + + public function load(array $args): void; + + public function pack(): array; +}