PreparedOrderEmail
in package
FinalYes
Result of the `prepare*()` render of {@see \App\UI\Api\Eshop\Models\Generators\OrderEmailGenerator}.
A value object without DI (the *DTO* folder mask in config/common.neon keeps the folder
out of the container scan). body is the final HTML (wrapped in email.latte, with
{#BODY#} rendered by the Latte string loader); EmailQueueManager::enqueue() stores
it in the queue as is.
Table of Contents
Properties
- $body : string
- $files : array<string|int, mixed>
- $from : string
- $preferred : bool
- $subject : string
- $to : string
Methods
- __construct() : mixed
Properties
$body read-only
public
string
$body
$files read-only
public
array<string|int, mixed>
$files
= []
$from read-only
public
string
$from
$preferred read-only
public
bool
$preferred
= false
$subject read-only
public
string
$subject
$to read-only
public
string
$to
Methods
__construct()
public
__construct(string $subject, string $body, string $from, string $to[, array<int, array{fileName: string, filePath: string, contentType: ?string}> $files = [] ][, bool $preferred = false ]) : mixed
Parameters
- $subject : string
- $body : string
- $from : string
- $to : string
- $files : array<int, array{fileName: string, filePath: string, contentType: ?string}> = []
-
Serialize-ready shape that matches exactly the reading side EmailQueue::getFilesUnserialized() (keys
fileName,filePath,contentType), notFileobjects. - $preferred : bool = false