Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 8 |
|
0.00% |
0 / 4 |
CRAP | |
0.00% |
0 / 1 |
AdminCenterDeactivateUserNotification | |
0.00% |
0 / 8 |
|
0.00% |
0 / 4 |
20 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
envelope | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |||
content | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |||
attachments | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace App\Mail; |
4 | |
5 | use Illuminate\Bus\Queueable; |
6 | use Illuminate\Contracts\Queue\ShouldQueue; |
7 | use Illuminate\Mail\Mailable; |
8 | use Illuminate\Mail\Mailables\Content; |
9 | use Illuminate\Mail\Mailables\Envelope; |
10 | use Illuminate\Queue\SerializesModels; |
11 | |
12 | class AdminCenterDeactivateUserNotification extends Mailable |
13 | { |
14 | use Queueable, SerializesModels; |
15 | |
16 | /** |
17 | * Create a new message instance. |
18 | */ |
19 | public function __construct( |
20 | public string $email, |
21 | public string $companyEmail, |
22 | public string $companyName, |
23 | public string $emailSubject = "Take Action : A user has been deactivated" |
24 | ){ |
25 | } |
26 | |
27 | /** |
28 | * Get the message envelope. |
29 | */ |
30 | public function envelope(): Envelope |
31 | { |
32 | return new Envelope( |
33 | subject: $this->emailSubject, |
34 | ); |
35 | } |
36 | |
37 | /** |
38 | * Get the message content definition. |
39 | */ |
40 | public function content(): Content |
41 | { |
42 | return new Content( |
43 | view: 'mail.admin.cmc_deactivate_user_notification', |
44 | ); |
45 | } |
46 | |
47 | /** |
48 | * Get the attachments for the message. |
49 | * |
50 | * @return array<int, \Illuminate\Mail\Mailables\Attachment> |
51 | */ |
52 | public function attachments(): array |
53 | { |
54 | return []; |
55 | } |
56 | } |