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