Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 11 |
|
0.00% |
0 / 4 |
CRAP | |
0.00% |
0 / 1 |
| BusinessProEnterpriseMail | |
0.00% |
0 / 11 |
|
0.00% |
0 / 4 |
30 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| envelope | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
6 | |||
| 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\Mail\Mailable; |
| 7 | use Illuminate\Mail\Mailables\Content; |
| 8 | use Illuminate\Mail\Mailables\Envelope; |
| 9 | use Illuminate\Queue\SerializesModels; |
| 10 | |
| 11 | class BusinessProEnterpriseMail extends Mailable |
| 12 | { |
| 13 | use Queueable, SerializesModels; |
| 14 | |
| 15 | /** |
| 16 | * Create a new message instance. |
| 17 | */ |
| 18 | public function __construct(public string $action, public string $companyName, public string $adminEmail, public string $userEmail) |
| 19 | { |
| 20 | // |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * Get the message envelope. |
| 25 | */ |
| 26 | public function envelope(): Envelope |
| 27 | { |
| 28 | $subject = $this->action === 'added' |
| 29 | ? 'Take action: A new user has been added' |
| 30 | : 'Take action: A user has been '.$this->action; |
| 31 | |
| 32 | return new Envelope( |
| 33 | subject: $subject, |
| 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.business_pro_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 | } |