Spec-Zone.ru › Laravel 9

PendingMailFake

class PendingMailFake extends PendingMail (View source)

Трейты

Conditionable

Свойства

protected Mailer $mailer

Экземпляр почтового сервера.

из PendingMail
protected string $locale

Локаль сообщения.

из PendingMail
protected array $to

Получатели сообщения (поле "to").

из PendingMail
protected array $cc

Получатели сообщения (поле "cc").

из PendingMail
protected array $bcc

Получатели сообщения (поле "bcc").

из PendingMail

Методы

$this|TWhenReturnType when($value = null, callable $callback = null, callable $default = null)

Применить обратный вызов, если заданное "значение" истинно.

из Conditionable
$this|TUnlessReturnType unless($value = null, callable $callback = null, callable $default = null)

Применить обратный вызов, если заданное "значение" ложно.

из Conditionable
void __construct(Mailer $mailer)

Создать новый экземпляр.

$this locale(string $locale)

Установить язык сообщения.

из PendingMail
$this to(mixed $users)

Установить получателей сообщения.

из PendingMail
$this cc(mixed $users)

Установить получателей сообщения.

из PendingMail
$this bcc(mixed $users)

Установить получателей сообщения.

из PendingMail
SentMessage|null send(Mailable $mailable)

Отправить новое сообщение mailable.

mixed queue(Mailable $mailable)

Поместить данное mailable в очередь.

mixed later(DateTimeInterface|DateInterval|int $delay, Mailable $mailable)

Доставить сообщение в очереди через (n) секунд.

из PendingMail
Mailable fill(Mailable $mailable)

Заполнить mailable адресами.

из PendingMail

Подробности

$this|TWhenReturnType when($value = null, callable $callback = null, callable $default = null)

Применить обратный вызов, если заданное "значение" истинно.

Параметры

$value
callable $callback
callable $default

Возвращаемое значение

$this|TWhenReturnType

$this|TUnlessReturnType unless($value = null, callable $callback = null, callable $default = null)

Применить обратный вызов, если заданное "значение" ложно.

Параметры

$value
callable $callback
callable $default

Возвращаемое значение

$this|TUnlessReturnType

void __construct(Mailer $mailer)

Создать новый экземпляр.

Parameters

Mailer $mailer

Return Value

void

$this locale(string $locale)

Установить язык сообщения.

Parameters

string $locale

Return Value

$this

$this to(mixed $users)

Указать получателей сообщения.

Parameters

mixed $users

Return Value

$this

$this cc(mixed $users)

Указать получателей сообщения.

Parameters

mixed $users

Return Value

$this

$this bcc(mixed $users)

Указать получателей сообщения.

Parameters

mixed $users

Return Value

$this

SentMessage|null send(Mailable $mailable)

Отправить новое сообщение-инстанс mailable.

Parameters

Mailable $mailable

Return Value

SentMessage|null

mixed queue(Mailable $mailable)

Поместить данный mailable в очередь.

Parameters

Mailable $mailable

Return Value

mixed

mixed later(DateTimeInterface|DateInterval|int $delay, Mailable $mailable)

Доставить сообщение в очереди через (n) секунд.

Parameters

DateTimeInterface|DateInterval|int $delay
Mailable $mailable

Return Value

mixed

protected Mailable fill(Mailable $mailable)

Заполнить рассылку адресами.

Параметры

Mailable $mailable

Возвращаемое значение

Mailable

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/9.x/Illuminate/Support/Testing/Fakes/PendingMailFake.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API