/var/www/hkosl.com/b2b2c/webadmin/libraies/illuminate/support/Testing/Fakes/MailableFake.php


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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php

namespace Illuminate\Support\Testing\Fakes;

use 
Illuminate\Mail\Mailable;
use 
Illuminate\Mail\MailableMailer;

class 
MailableFake extends MailableMailer
{
    
/**
     * The mailable instance.
     *
     * @var mixed
     */
    
public $mailable;

    
/**
     * Create a new instance.
     *
     * @return void
     */
    
public function __construct()
    {
        
//
    
}

    
/**
     * Send a new mailable message instance.
     *
     * @param  Mailable  $mailable
     * @return mixed
     */
    
public function send(Mailable $mailable)
    {
        return 
$this->sendNow($mailable);
    }

    
/**
     * Send a mailable message immediately.
     *
     * @param  Mailable  $mailable
     * @return mixed
     */
    
public function sendNow(Mailable $mailable)
    {
        
$this->mailable $mailable;
    }

    
/**
     * Push the given mailable onto the queue.
     *
     * @param  Mailable  $mailable
     * @return mixed
     */
    
public function queue(Mailable $mailable)
    {
        return 
$this->sendNow($mailable);
    }

    
/**
     * Get the recipient information for the mailable.
     *
     * @return array
     */
    
public function getRecipients()
    {
        return [
'to' => $this->to'cc' => $this->cc'bcc' => $this->bcc];
    }
}