EmailMessage
in package
Table of Contents
- $config : AirlayConfig
- $defaultTemplateName : string
- $emailService : EmailService
- $linkService : LinkService
- $organizationsCollection : OrganizationsCollection
- $portal : PortalEntity|null
- $user : UserEntity
- $rabbitmq : AMQPStreamConnection
- send() : void
- __construct() : mixed
- addToQueue() : void
- getParamsForTemplate() : array<string|int, mixed>
- getTemplateFromOrganization() : TemplateEntity
Properties
$config
protected
AirlayConfig
$config
$defaultTemplateName
protected
string
$defaultTemplateName
$emailService
protected
EmailService
$emailService
$linkService
protected
LinkService
$linkService
$organizationsCollection
protected
OrganizationsCollection
$organizationsCollection
$portal
protected
PortalEntity|null
$portal
$user
protected
UserEntity
$user
$rabbitmq
private
AMQPStreamConnection
$rabbitmq
Methods
send()
public
send([bool $sendAdditional = true ][, TemplateEntity|null $template = null ]) : void
Parameters
- $sendAdditional : bool = true
- $template : TemplateEntity|null = null
Return values
void —__construct()
protected
__construct(UserEntity $user, PortalEntity|null $portal, DiInterface $di) : mixed
Parameters
- $user : UserEntity
- $portal : PortalEntity|null
- $di : DiInterface
Return values
mixed —addToQueue()
protected
addToQueue(NotificationSendBody $body) : void
Parameters
- $body : NotificationSendBody
Return values
void —getParamsForTemplate()
protected
abstract getParamsForTemplate() : array<string|int, mixed>
Return values
array<string|int, mixed> —getTemplateFromOrganization()
protected
getTemplateFromOrganization() : TemplateEntity