Completed
Push — master ( f6da53...285219 )
by Quim González
04:10
created

customMail::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace App\Mail;
4
5
use Illuminate\Bus\Queueable;
6
use Illuminate\Mail\Mailable;
7
use Illuminate\Queue\SerializesModels;
8
use Illuminate\Contracts\Queue\ShouldQueue;
9
10
class customMail extends Mailable
11
{
12
    use Queueable, SerializesModels;
13
14
    public $subject, $body;
15
    /**
16
     * Create a new message instance.
17
     *
18
     * @return void
19
     */
20
    public function __construct($subject, $body)
21
    {
22
        $this->subject = $subject;
23
        $this->body = $body;
24
    }
25
26
    /**
27
     * Build the message.
28
     *
29
     * @return $this
30
     */
31
    public function build()
32
    {
33
        return $this->markdown('emails.customMail', [
34
            'subject' => $this->subject,
35
            'body'=> $this->body
36
37
        ]);
38
    }
39
}
40