File "Subject.php"

Full Path: /home/warrior1/public_html/plugins/mailpoet/lib/Automation/Engine/Integration/Subject.php
File size: 498 bytes
MIME-type: text/x-php
Charset: utf-8

<?php declare(strict_types = 1);

namespace MailPoet\Automation\Engine\Integration;

if (!defined('ABSPATH')) exit;


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