Rename namespace with defs for 3rd-party integrations to "Integration"
[MAILPOET-4659]
This commit is contained in:
20
mailpoet/lib/Automation/Engine/Integration/Subject.php
Normal file
20
mailpoet/lib/Automation/Engine/Integration/Subject.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php declare(strict_types = 1);
|
||||
|
||||
namespace MailPoet\Automation\Engine\Integration;
|
||||
|
||||
use MailPoet\Automation\Engine\Data\Subject as SubjectData;
|
||||
use MailPoet\Validator\Schema\ObjectSchema;
|
||||
|
||||
/**
|
||||
* @template-covariant T of Payload
|
||||
*/
|
||||
interface Subject {
|
||||
public function getKey(): string;
|
||||
|
||||
public function getName(): string;
|
||||
|
||||
public function getArgsSchema(): ObjectSchema;
|
||||
|
||||
/** @return T */
|
||||
public function getPayload(SubjectData $subjectData): Payload;
|
||||
}
|
Reference in New Issue
Block a user