Completed
Pull Request — master (#21)
by Shawn
05:56 queued 03:40
created

EmailSupervisorReminder   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 27
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A build() 0 5 1
1
<?php
2
3
namespace SET\Mail;
4
5
use Illuminate\Bus\Queueable;
6
use Illuminate\Contracts\Queue\ShouldQueue;
7
use Illuminate\Database\Eloquent\Collection;
8
use Illuminate\Mail\Mailable;
9
use Illuminate\Queue\SerializesModels;
10
11
class EmailSupervisorReminder extends Mailable implements ShouldQueue
12
{
13
    use Queueable, SerializesModels;
14
15
    public $notes;
16
17
    /**
18
     * Create a new message instance.
19
     *
20
     * @param Collection $note
21
     */
22
    public function __construct(Collection $note)
23
    {
24
        $this->notes = $note;
25
    }
26
27
    /**
28
     * Build the message.
29
     *
30
     * @return $this
31
     */
32
    public function build()
33
    {
34
        return $this->view('emails.supervisor_reminder')
35
            ->subject('Training that your employees need to complete.');
36
    }
37
}
38