App\Services\Notification\MailNotifier::from PHP Метод

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

Sender of notification.
public from ( string $from ) : App\Services\Notification\NotifierInterface
$from string The sender
Результат App\Services\Notification\NotifierInterface Return self for chainability
    public function from($from)
    {
        $this->from = $from;
        return $this;
    }

Usage Example

Пример #1
0
 public function test_Should_SetFromAddressAndReturnThis()
 {
     $notifier = new MailNotifier();
     $result = $notifier->from('*****@*****.**');
     $this->assertEquals($notifier, $result);
 }