Debian Codegraph @

lib/3rdParty/composer/illuminate/support/Testing/Fakes/PendingMailFake.php

raw symbols SCIP
1 <?php
2
3 namespace Illuminate\Support\Testing\Fakes;
4
5 use Illuminate\Contracts\Mail\Mailable;
6 use Illuminate\Mail\PendingMail;
7
8 class PendingMailFake extends PendingMail
9 {
10 /**
11 * Create a new instance.
12 *
13 * @param \Illuminate\Support\Testing\Fakes\MailFake $mailer
14 */
15 public function __construct($mailer)
16 {
17 $this->mailer = $mailer;
18 }
19
20 /**
21 * Send a new mailable message instance.
22 *
23 * @param \Illuminate\Contracts\Mail\Mailable $mailable
24 * @return void
25 */
26 public function send(Mailable $mailable)
27 {
28 $this->mailer->send($this->fill($mailable));
29 }
30
31 /**
32 * Send a new mailable message instance synchronously.
33 *
34 * @param \Illuminate\Contracts\Mail\Mailable $mailable
35 * @return void
36 */
37 public function sendNow(Mailable $mailable)
38 {
39 $this->mailer->sendNow($this->fill($mailable));
40 }
41
42 /**
43 * Push the given mailable onto the queue.
44 *
45 * @param \Illuminate\Contracts\Mail\Mailable $mailable
46 * @return mixed
47 */
48 public function queue(Mailable $mailable)
49 {
50 return $this->mailer->queue($this->fill($mailable));
51 }
52 }