mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 12:37:14 +01:00
74 lines
1.3 KiB
PHP
74 lines
1.3 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Xentral\Components\MailClient\Data;
|
|
|
|
use DateTimeInterface;
|
|
use Xentral\Components\Mailer\Data\EmailRecipient;
|
|
|
|
interface MailMessageInterface extends MailMessagePartInterface
|
|
{
|
|
/**
|
|
* @return string[]
|
|
*/
|
|
public function getFlags(): array;
|
|
|
|
/**
|
|
* @param string $flag
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function hasFlag(string $flag): bool;
|
|
|
|
/**
|
|
* @return string|null
|
|
*/
|
|
public function getHtmlBody(): ?string;
|
|
|
|
/**
|
|
* @return string|null
|
|
*/
|
|
public function getPlainTextBody(): ?string;
|
|
|
|
/**
|
|
* @return string|null
|
|
*/
|
|
public function getRawContent(): ?string;
|
|
|
|
/**
|
|
* @return string|null
|
|
*/
|
|
public function getSubject(): ?string;
|
|
|
|
/**
|
|
* @return DateTimeInterface|null
|
|
*/
|
|
public function getDate(): ?DateTimeInterface;
|
|
|
|
/**
|
|
* @return EmailRecipient
|
|
*/
|
|
public function getSender(): EmailRecipient;
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getReplyToAddress(): string;
|
|
|
|
/**
|
|
* @return EmailRecipient[]
|
|
*/
|
|
public function getRecipients(): array;
|
|
|
|
/**
|
|
* @return EmailRecipient[]
|
|
*/
|
|
public function getCcRecipients(): array;
|
|
|
|
/**
|
|
* @return MailAttachmentInterface[]
|
|
*/
|
|
public function getAttachments(): array;
|
|
}
|