TestimonialSubmitted   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 6
dl 0
loc 28
rs 10
c 1
b 0
f 1
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A build() 0 4 1
A __construct() 0 3 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