MessageFactory
in package
Helps create Swift_Message objects, lazily
Tags
Table of Contents
- $contentType : mixed
- $fromEmail : mixed
- $mailer : mixed
- $subject : mixed
- $toEmail : mixed
- __construct() : mixed
- createMessage() : Swift_Message
- Creates a Swift_Message template that will be used to send the log message
Properties
$contentType
private
mixed
$contentType
$fromEmail
private
mixed
$fromEmail
$mailer
private
mixed
$mailer
$subject
private
mixed
$subject
$toEmail
private
mixed
$toEmail
Methods
__construct()
public
__construct(Swift_Mailer $mailer, mixed $fromEmail, mixed $toEmail, mixed $subject[, mixed $contentType = null ]) : mixed
Parameters
- $mailer : Swift_Mailer
- $fromEmail : mixed
- $toEmail : mixed
- $subject : mixed
- $contentType : mixed = null
Return values
mixed —createMessage()
Creates a Swift_Message template that will be used to send the log message
public
createMessage(string $content, array<string|int, mixed> $records) : Swift_Message
Parameters
- $content : string
-
formatted email body to be sent
- $records : array<string|int, mixed>
-
Log records that formed the content