Passed
Push — task/update-npm ( 00bdcc...33d0cb )
by Tristan
28:58 queued 13:36
created

JobPosterReviewRequested::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace App\Mail;
4
5
use Illuminate\Bus\Queueable;
6
use Illuminate\Mail\Mailable;
7
use Illuminate\Queue\SerializesModels;
8
use Illuminate\Contracts\Queue\ShouldQueue;
9
10
use App\Models\JobPoster;
11
use App\Models\User;
12
13
class JobPosterReviewRequested extends Mailable
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class JobPosterReviewRequested
Loading history...
14
{
15
    use Queueable, SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by App\Mail\JobPosterReviewRequested: $id, $class, $relations
Loading history...
16
17
    /**
18
     * The Job Poster instance.
19
     *
20
     * @var JobPoster
21
     */
22
    public $jobPoster;
23
24
    /**
25
     * The Manager that owns the Job Poster.
26
     *
27
     * @var User
28
     */
29
    public $manager;
30
31
    /**
32
     * Create a new message instance.
33
     *
34
     * @param JobPoster $jobPoster Incoming Job Poster object.
35
     * @param User      $manager   Incoming User object.
36
     *
37
     * @return void
38
     */
39
    public function __construct(JobPoster $jobPoster, User $manager)
40
    {
41
        $this->jobPoster = $jobPoster;
42
        $this->manager = $manager;
43
    }
44
45
    /**
46
     * Build the message.
47
     *
48
     * @return $this
49
     */
50
    public function build()
51
    {
52
        return $this->text('emails.job_posters.review_requested_plain');
53
    }
54
}
55