SmsMessage
in package
implements
MessageInterface
FinalYes
Tags
Table of Contents
Interfaces
Properties
- $phone : string
- $subject : string
- $transport : string|null
Methods
- __construct() : mixed
- fromNotification() : self
- getOptions() : MessageOptionsInterface|null
- getPhone() : string
- getRecipientId() : string
- getSubject() : string
- getTransport() : string|null
- phone() : $this
- subject() : $this
- transport() : $this
Properties
$phone
private
string
$phone
$subject
private
string
$subject
$transport
private
string|null
$transport
= null
Methods
__construct()
public
__construct(string $phone, string $subject) : mixed
Parameters
- $phone : string
- $subject : string
fromNotification()
public
static fromNotification(Notification $notification, SmsRecipientInterface $recipient) : self
Parameters
- $notification : Notification
- $recipient : SmsRecipientInterface
Return values
selfgetOptions()
public
getOptions() : MessageOptionsInterface|null
Return values
MessageOptionsInterface|nullgetPhone()
public
getPhone() : string
Return values
stringgetRecipientId()
public
getRecipientId() : string
Return values
stringgetSubject()
public
getSubject() : string
Return values
stringgetTransport()
public
getTransport() : string|null
Return values
string|nullphone()
public
phone(string $phone) : $this
Parameters
- $phone : string
Return values
$thissubject()
public
subject(string $subject) : $this
Parameters
- $subject : string
Return values
$thistransport()
public
transport(string|null $transport) : $this
Parameters
- $transport : string|null