mirror of
http://124.126.16.154:8888/singularity/HyperfDevelopmentKitCore.git
synced 2026-01-15 07:15:06 +08:00
74 lines
1.4 KiB
PHP
74 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* EmailWillSent.php@HDK-Core
|
|
*
|
|
* @author 李东云 <Dongyun.Li@LuxCreo.Ai>
|
|
* Powered by PhpStorm
|
|
* Created on 2023/1/16
|
|
*/
|
|
|
|
namespace Singularity\HDK\Core\Events;
|
|
|
|
use Singularity\HDK\Core\Service\EmailService;
|
|
use Symfony\Component\Mime\Email;
|
|
|
|
/**
|
|
* Singularity\HDK\Core\Events\EmailWillSent@HDK-Core
|
|
*
|
|
* @author 李东云 <Dongyun.Li@LuxCreo.Ai>
|
|
* Powered by PhpStorm
|
|
* Created on 2023/1/16
|
|
*
|
|
* @link ../../docs/Email.md
|
|
*/
|
|
class EmailWillSent
|
|
{
|
|
public function __construct(
|
|
/**
|
|
* @var string|string[] $target
|
|
*/
|
|
public string|array $target,
|
|
|
|
/**
|
|
* @var non-empty-string $subject
|
|
*/
|
|
public string $subject,
|
|
|
|
/**
|
|
* @var non-empty-string $content
|
|
*/
|
|
public string $content,
|
|
|
|
/**
|
|
* 抄送
|
|
*
|
|
* @var string[] $cc
|
|
*/
|
|
public array $cc = [],
|
|
|
|
/**
|
|
* 密送
|
|
*
|
|
* @var string[] $bcc
|
|
*/
|
|
public array $bcc = [],
|
|
|
|
/**
|
|
* @var 'text'|'html' $type
|
|
*/
|
|
public string $type = 'text',
|
|
|
|
/**
|
|
* @var int
|
|
* @see Email::priority()
|
|
*/
|
|
public int $priority = Email::PRIORITY_NORMAL,
|
|
|
|
/**
|
|
* @var EmailService|null
|
|
*/
|
|
public ?EmailService $sender = null,
|
|
) {
|
|
}
|
|
}
|