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

customMail   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 26
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A build() 0 5 1
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