TestimonialSubmitted::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 1
b 0
f 1
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
9
class TestimonialSubmitted extends Mailable implements ShouldQueue
10
{
11
    use Queueable;
12
13
    /**
14
     * @var mixed
15
     */
16
    public $testimonial;
17
18
    /**
19
     * Create a new message instance.
20
     *
21
     * @return void
22
     */
23
    public function __construct(array $testimonial)
24
    {
25
        $this->testimonial = $testimonial;
26
    }
27
28
    /**
29
     * Build the message.
30
     *
31
     * @return $this
32
     */
33
    public function build()
34
    {
35
        return $this->subject('Thank you for Submitting your Testimonial')
36
                    ->view('emails.testimonials.submitted', $this->testimonial);
37
    }
38
}
39