ActionEmail extends Action
Table of Contents
Constants
- EVENT_TYPE = 'EVENT_LOG_NOTIFICATION'
- TYPE_EMAIL = 'email'
- TYPE_SMS = 'sms'
Methods
- __construct() : mixed
- Action constructor.
- createByType() : Action
- Creates an action by its type.
- getRecipient() : string
- Returns a receiver.
- getText() : string
- Returns a text.
- getType() : string
- Returns a type of the action.
- send() : mixed
- Sends a notification.
Constants
EVENT_TYPE
public
mixed
EVENT_TYPE
= 'EVENT_LOG_NOTIFICATION'
TYPE_EMAIL
public
mixed
TYPE_EMAIL
= 'email'
TYPE_SMS
public
mixed
TYPE_SMS
= 'sms'
Methods
__construct()
Action constructor.
public
__construct(mixed $recipient, mixed $text) : mixed
Parameters
- $recipient : mixed
- $text : mixed
createByType()
Creates an action by its type.
public
static createByType(string $type, string $recipient, string $text) : Action
Parameters
- $type : string
- $recipient : string
- $text : string
Tags
Return values
ActiongetRecipient()
Returns a receiver.
public
getRecipient() : string
Return values
stringgetText()
Returns a text.
public
getText() : string
Return values
stringgetType()
Returns a type of the action.
public
getType() : string
Return values
stringsend()
Sends a notification.
public
send(Notification $notification) : mixed
Parameters
- $notification : Notification