Message
in package
Model for messages from contact us page
Table of Contents
- $date : string
- $email : string
- $message : string
- $name : string
- $read : bool
- $subject : string
- __construct() : mixed
- getDate() : string
- Get date
- getEmail() : string
- Get sender's email
- getMessage() : string
- Get message
- getName() : string
- Get sender's name
- getReadStatus() : bool
- Get message read status
- getSubject() : string
- Get message subject
- setReadStatus() : void
- Update message read status
Properties
$date
private
string
$date
private
string
$email
$message
private
string
$message
$name
private
string
$name
$read
private
bool
$read
$subject
private
string
$subject
Methods
__construct()
public
__construct(string $subject, string $name, string $email, string $message, bool $read, string $date) : mixed
Parameters
- $subject : string
- $name : string
- $email : string
- $message : string
- $read : bool
- $date : string
Return values
mixed —getDate()
Get date
public
getDate() : string
Return values
string —getEmail()
Get sender's email
public
getEmail() : string
Return values
string —getMessage()
Get message
public
getMessage(int|null $limit) : string
Parameters
- $limit : int|null
Return values
string —getName()
Get sender's name
public
getName() : string
Return values
string —getReadStatus()
Get message read status
public
getReadStatus() : bool
Return values
bool —getSubject()
Get message subject
public
getSubject(int|null $limit) : string
Parameters
- $limit : int|null
Return values
string —setReadStatus()
Update message read status
public
setReadStatus(bool $status) : void
Parameters
- $status : bool