AirLay backend

TemplateEntity extends DatabaseEntity
in package

Table of Contents

AVAILABLE_TYPE  = ['emailMessageAboutChangedPassword', 'emailMessageAboutInviteInSubscription', 'emailMessageAboutRegistrationUserByMasterUser', 'emailMessageFromEmailSenderModule', 'emailMessageWithAuthorizationPinCode', 'emailMessageWithLinkForConfirmRegistration', 'emailMessageWithLinkForSetPassword', 'emailMessageWithReportBySubscription', 'issueNotification', 'issueMonitoringNotification']
$_id  : ObjectId
$body  : string
$header  : string
$organizationId  : ObjectId
$title  : string
$type  : string
__construct()  : mixed
__toString()  : string
bsonSerialize()  : array<string|int, mixed>
bsonUnserialize()  : void
fromArray()  : TemplateEntity
getBody()  : string
getHeader()  : string
getId()  : ObjectId
getOrganizationId()  : ObjectId
getTitle()  : string
getType()  : string
jsonSerialize()  : array<string|int, mixed>
parseObjectId()  : ObjectId|null
setBody()  : self
setHeader()  : self
setId()  : self
setOrganizationId()  : self
setTitle()  : self
setType()  : self
toArray()  : array<string|int, mixed>

Constants

AVAILABLE_TYPE

public mixed AVAILABLE_TYPE = ['emailMessageAboutChangedPassword', 'emailMessageAboutInviteInSubscription', 'emailMessageAboutRegistrationUserByMasterUser', 'emailMessageFromEmailSenderModule', 'emailMessageWithAuthorizationPinCode', 'emailMessageWithLinkForConfirmRegistration', 'emailMessageWithLinkForSetPassword', 'emailMessageWithReportBySubscription', 'issueNotification', 'issueMonitoringNotification']

Properties

Methods

__construct()

public __construct([ObjectId|null $id = null ]) : mixed
Parameters
$id : ObjectId|null = null
Return values
mixed

__toString()

public __toString() : string
Return values
string

bsonSerialize()

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

bsonUnserialize()

public bsonUnserialize(array<string|int, mixed> $data) : void
Parameters
$data : array<string|int, mixed>
Return values
void

getHeader()

public getHeader() : string
Return values
string

getOrganizationId()

public getOrganizationId() : ObjectId
Return values
ObjectId

jsonSerialize()

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

parseObjectId()

public static parseObjectId(mixed $objectId) : ObjectId|null
Parameters
$objectId : mixed
Return values
ObjectId|null

setBody()

public setBody(string $body) : self
Parameters
$body : string
Return values
self

setHeader()

public setHeader(string $header) : self
Parameters
$header : string
Return values
self

setId()

public setId(ObjectId $id) : self
Parameters
$id : ObjectId
Return values
self

setOrganizationId()

public setOrganizationId(ObjectId $organizationId) : self
Parameters
$organizationId : ObjectId
Return values
self

setTitle()

public setTitle(string $title) : self
Parameters
$title : string
Return values
self

setType()

public setType(string $type) : self
Parameters
$type : string
Return values
self

toArray()

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

Search results