PHP Class App\Services\Notification\MailNotifier

Inheritance: implements App\Services\Notification\NotifierInterface
Show file Open project: ngmy/webloyer Class Usage Examples

Protected Properties

Property Type Description
$from string Sender of notification.
$to string Recipient of notification.

Public Methods

Method Description
from ( string $from ) : App\Services\Notification\NotifierInterface Sender of notification.
notify ( string $subject, string $message ) : void Send notification.
to ( string $to ) : App\Services\Notification\NotifierInterface Recipient of notification.

Method Details

from() public method

Sender of notification.
public from ( string $from ) : App\Services\Notification\NotifierInterface
$from string The sender
return App\Services\Notification\NotifierInterface Return self for chainability

notify() public method

Send notification.
public notify ( string $subject, string $message ) : void
$subject string The subject of notification
$message string The message of notification
return void

to() public method

Recipient of notification.
public to ( string $to ) : App\Services\Notification\NotifierInterface
$to string The recipient
return App\Services\Notification\NotifierInterface Return self for chainability

Property Details

$from protected property

Sender of notification.
protected string $from
return string

$to protected property

Recipient of notification.
protected string $to
return string