PHP Interface App\Services\Notification\NotifierInterface

Show file Open project: ngmy/webloyer Interface Usage Examples

Public Methods

Method Description
from ( string $from ) : App\Services\Notification\NotifierInterface Sender of notification.
notify ( string $subject, string $message ) : void Send notification.
to ( $to ) 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 ( $to )