JobPosterReviewRequested   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Test Coverage

Coverage 66.67%

Importance

Changes 0
Metric Value
wmc 2
eloc 8
dl 0
loc 47
ccs 4
cts 6
cp 0.6667
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A build() 0 3 1
1
<?php
2
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 implements ShouldQueue
14
{
15
    use Queueable, SerializesModels;
16
17
    /**
18
     * The number of times the job may be attempted.
19
     *
20
     * @var integer
21
     */
22
    public $tries = 5;
23
24
    /**
25
     * The Job Poster instance.
26
     *
27
     * @var JobPoster
28
     */
29
    public $jobPoster;
30
31
    /**
32
     * The Manager that owns the Job Poster.
33
     *
34
     * @var User
35
     */
36
    public $manager;
37
38
    /**
39
     * Create a new message instance.
40
     *
41
     * @param JobPoster $jobPoster Incoming Job Poster object.
42
     * @param User      $manager   Incoming User object.
43
     *
44
     * @return void
45
     */
46 1
    public function __construct(JobPoster $jobPoster, User $manager)
47
    {
48 1
        $this->jobPoster = $jobPoster;
49 1
        $this->manager = $manager;
50 1
    }
51
52
    /**
53
     * Build the message.
54
     *
55
     * @return $this
56
     */
57
    public function build()
58
    {
59
        return $this->text('emails.job_posters.review_requested_plain');
60
    }
61
}
62