Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 9
0.00% covered (danger)
0.00%
0 / 4
CRAP
0.00% covered (danger)
0.00%
0 / 1
GlobalAdminInvitationExistentUserMail
0.00% covered (danger)
0.00%
0 / 9
0.00% covered (danger)
0.00%
0 / 4
20
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
 envelope
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 1
2
 content
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 1
2
 attachments
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace App\Mail;
4
5use Illuminate\Bus\Queueable;
6use Illuminate\Contracts\Queue\ShouldQueue;
7use Illuminate\Mail\Mailable;
8use Illuminate\Mail\Mailables\Content;
9use Illuminate\Mail\Mailables\Envelope;
10use Illuminate\Queue\SerializesModels;
11
12class GlobalAdminInvitationExistentUserMail extends Mailable
13{
14    use Queueable, SerializesModels;
15
16    public string $href;
17    public string $frontendBaseUrl;
18
19    /**
20     * Create a new message instance.
21     */
22    public function __construct(
23        public string $email,
24        public string $firstName,
25        public string $lastName,
26        public string $inviter,
27        public string $temporaryPassword,
28        public string $passwordExpiry,
29        public readonly string $avatar
30    ) {
31        $this->frontendBaseUrl = config('romeo.frontend-base-url');
32        $this->href = $this->frontendBaseUrl . "/session/signin?email={$email}";
33    }
34
35    /**
36     * Get the message envelope.
37     */
38    public function envelope(): Envelope
39    {
40        return new Envelope(
41            subject: "Welcome to FlyMSG's Global Admin Center, {$this->firstName} {$this->lastName}",
42        );
43    }
44
45    /**
46     * Get the message content definition.
47     */
48    public function content(): Content
49    {
50        return new Content(
51            view: 'mail.admin.global_admin_invitation_existent_user',
52        );
53    }
54
55    /**
56     * Get the attachments for the message.
57     *
58     * @return array<int, \Illuminate\Mail\Mailables\Attachment>
59     */
60    public function attachments(): array
61    {
62        return [];
63    }
64}