CoolCMS API

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

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), not File objects.

$preferred : bool = false
On this page

Search results