Blame view
public/vendor/illuminate/support/Testing/Fakes/PendingMailFake.php
1.21 KB
86143e36f Коммит вторник |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
<?php namespace Illuminate\Support\Testing\Fakes; use Illuminate\Contracts\Mail\Mailable; use Illuminate\Mail\PendingMail; class PendingMailFake extends PendingMail { /** * Create a new instance. * * @param \Illuminate\Support\Testing\Fakes\MailFake $mailer * @return void */ public function __construct($mailer) { $this->mailer = $mailer; } /** * Send a new mailable message instance. * * @param \Illuminate\Contracts\Mail\Mailable $mailable * @return mixed */ public function send(Mailable $mailable) { return $this->mailer->send($this->fill($mailable)); } /** * Send a mailable message immediately. * * @param \Illuminate\Contracts\Mail\Mailable $mailable * @return mixed * * @deprecated Use send() instead. */ public function sendNow(Mailable $mailable) { return $this->send($mailable); } /** * Push the given mailable onto the queue. * * @param \Illuminate\Contracts\Mail\Mailable $mailable * @return mixed */ public function queue(Mailable $mailable) { return $this->mailer->queue($this->fill($mailable)); } } |