PHP Класс App\Services\Notification\MailNotifier

Наследование: implements App\Services\Notification\NotifierInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$from string Sender of notification.
$to string Recipient of notification.

Открытые методы

Метод Описание
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.

Описание методов

from() публичный Метод

Sender of notification.
public from ( string $from ) : App\Services\Notification\NotifierInterface
$from string The sender
Результат App\Services\Notification\NotifierInterface Return self for chainability

notify() публичный Метод

Send notification.
public notify ( string $subject, string $message ) : void
$subject string The subject of notification
$message string The message of notification
Результат void

to() публичный Метод

Recipient of notification.
public to ( string $to ) : App\Services\Notification\NotifierInterface
$to string The recipient
Результат App\Services\Notification\NotifierInterface Return self for chainability

Описание свойств

$from защищенное свойство

Sender of notification.
protected string $from
Результат string

$to защищенное свойство

Recipient of notification.
protected string $to
Результат string