class Email

Entity Email (linked to DB table emails)

Properties

protected int $id Email unique id
protected DateTime $dateSent DateTime email has been sent
protected string $subject Subject of the email
protected string $sentFrom Email address sent from
protected string $sentTo Email address sent to
protected string $sentCc Email address sent cc
protected string $sentBcc Email address sent bcc (not mapped in DB)
protected string $replyTo Email address reply to (not mapped in DB)
protected string $body Body of email
protected string $ip IP address

Methods

setDataFromArray(array $data)

Hydrates entity from associative array

int
getId()

Get id

setDateSent(DateTime|null $dateSent)

Set dateSent

DateTime|null
getDateSent()

Get dateSent

setSubject(string|null $subject)

Set subject

string|null
getSubject()

Get subject

setSentFrom(string|null $sentFrom)

Set sentFrom

string|null
getSentFrom()

Get sentFrom

setSentTo(string|null $sentTo)

Set sentTo

string|null
getSentTo()

Get sentTo

setSentCc(string|null $sentCc)

Set sentCc

string|null
getSentCc()

Get sentCc

setSentBcc(string|null $sentBcc)

Set sentBcc

string|null
getSentBcc()

Get sentBcc

setReplyTo(string|null $replyTo)

Set replyTo

string|null
getReplyTo()

Get replyTo

setBody(string|null $body)

Set body

string|null
getBody()

Get body

setIp(string|null $ip)

Set ip

string|null
getIp()

Get ip

Details

at line 106
setDataFromArray(array $data)

Hydrates entity from associative array

Parameters

array $data

at line 120
int getId()

Get id

Return Value

int

at line 130
Email setDateSent(DateTime|null $dateSent)

Set dateSent

Parameters

DateTime|null $dateSent

Return Value

Email

at line 141
DateTime|null getDateSent()

Get dateSent

Return Value

DateTime|null

at line 151
Email setSubject(string|null $subject)

Set subject

Parameters

string|null $subject

Return Value

Email

at line 162
string|null getSubject()

Get subject

Return Value

string|null

at line 172
Email setSentFrom(string|null $sentFrom)

Set sentFrom

Parameters

string|null $sentFrom

Return Value

Email

at line 183
string|null getSentFrom()

Get sentFrom

Return Value

string|null

at line 193
Email setSentTo(string|null $sentTo)

Set sentTo

Parameters

string|null $sentTo

Return Value

Email

at line 204
string|null getSentTo()

Get sentTo

Return Value

string|null

at line 214
Email setSentCc(string|null $sentCc)

Set sentCc

Parameters

string|null $sentCc

Return Value

Email

at line 225
string|null getSentCc()

Get sentCc

Return Value

string|null

at line 235
Email setSentBcc(string|null $sentBcc)

Set sentBcc

Parameters

string|null $sentBcc

Return Value

Email

at line 246
string|null getSentBcc()

Get sentBcc

Return Value

string|null

at line 256
Email setReplyTo(string|null $replyTo)

Set replyTo

Parameters

string|null $replyTo

Return Value

Email

at line 267
string|null getReplyTo()

Get replyTo

Return Value

string|null

at line 277
Email setBody(string|null $body)

Set body

Parameters

string|null $body

Return Value

Email

at line 288
string|null getBody()

Get body

Return Value

string|null

at line 298
Email setIp(string|null $ip)

Set ip

Parameters

string|null $ip

Return Value

Email

at line 309
string|null getIp()

Get ip

Return Value

string|null