Documentation

TemplateTrait

Tags
@method

getTemplate(): ?array

@method

setTemplate(?array $value): $this

@method

getTemplateId(): ?int

@method

setTemplateId(?int $value): $this

@method

getIsTest(): ?bool

@method

setIsTest(?bool $value): $this

Table of Contents

Properties

$isTest  : bool
$template  : array<string|int, mixed>|null
The content of the message-template.
$templateId  : int|null

Methods

getLocale()  : string|null
resolveContent()  : array<string|int, mixed>
setLocale()  : mixed

Properties

$template

The content of the message-template.

protected array<string|int, mixed>|null $template

Ex: [ 'msg_subject' => 'Hello {contact.first_name}', 'msg_html' => '

Greetings and salutations, {contact.display_name}!

' ]

Tags
scope

envelope as messageTemplate

$templateId

protected int|null $templateId
Tags
scope

envelope as messageTemplateID

Methods

getLocale()

public abstract getLocale() : string|null
Return values
string|null

resolveContent()

public resolveContent() : array<string|int, mixed>
Return values
array<string|int, mixed>

setLocale()

public abstract setLocale(string|null $locale) : mixed
Parameters
$locale : string|null

        
On this page

Search results