ForwardCv   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 31
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A build() 0 6 1
1
<?php
2
3
namespace App\Mail;
4
5
use App\Message;
0 ignored issues
show
Bug introduced by
The type App\Message was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use App\MessageTemplate;
0 ignored issues
show
Bug introduced by
The type App\MessageTemplate was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
use Illuminate\Bus\Queueable;
8
use Illuminate\Mail\Mailable;
9
use Illuminate\Queue\SerializesModels;
10
use Illuminate\Support\Facades\View;
11
12
class ForwardCv extends Mailable
13
{
14
//    use Queueable, SerializesModels;
15
    use Queueable;
16
17
    /**
18
     * @var MessageTemplate
19
     */
20
    public $messageTemplate;
21
22
    /**
23
     * Create a new message instance.
24
     *
25
     * @return void
26
     */
27
    public function __construct($messageTemplate)
28
    {
29
        $this->messageTemplate = $messageTemplate;
30
    }
31
32
    /**
33
     * Build the message.
34
     *
35
     * @return $this
36
     */
37
    public function build()
38
    {
39
        return $this
40
            ->subject($this->messageTemplate->subject)
41
            ->attach($this->messageTemplate->attachment)
42
            ->text('emails.general_message');
43
44
//        ->subject($this->getSubject())
45
//        ->view('emails.raw_email')
46
//        ->attach($this->getCvPath());
47
    }
48
}
49