UserJoinsOrganizationToAdmin::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 10
c 1
b 0
f 0
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\Queue\SerializesModels;
9
10
class UserJoinsOrganizationToAdmin extends Mailable
11
{
12
    use Queueable, SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by App\Mail\UserJoinsOrganizationToAdmin: $id, $relations, $class, $keyBy
Loading history...
13
14
    private $fullname;
15
    private $organization;
16
17
    public function __construct(string $fullname, string $organization)
18
    {
19
        $this->fullname = $fullname;
20
        $this->organization = $organization;
21
    }
22
23
    public function build()
24
    {
25
        return $this->view('mails.userJoinsOrganizationToAdmin', [
26
            'fullname' => $this->fullname,
27
            'organization' => $this->organization
28
        ]);
29
    }
30
}
31