ExceptionOccurred::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
rs 10
1
<?php
2
3
namespace App\Mail;
4
5
use Illuminate\Bus\Queueable;
6
use Illuminate\Mail\Mailable;
7
use Illuminate\Queue\SerializesModels;
8
9
class ExceptionOccurred extends Mailable
10
{
11
    use Queueable, SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by App\Mail\ExceptionOccurred: $id, $class, $relations
Loading history...
12
13
    public $exception;
14
15
    /**
16
     * Create a new message instance.
17
     *
18
     * @param \Exception $exception
19
     */
20
    public function __construct(\Exception $exception)
21
    {
22
        $this->exception = $exception;
23
    }
24
25
    /**
26
     * Build the message.
27
     *
28
     * @return $this
29
     */
30
    public function build()
31
    {
32
        return $this
33
            ->subject('Excepção - benfica.live')
34
            ->markdown('emails.exception-occurred-admin');
35
    }
36
}
37