ExternalCourseReport::build()   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 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace App\Mail;
4
5
use Illuminate\Bus\Queueable;
6
use Illuminate\Mail\Mailable;
7
use Illuminate\Queue\SerializesModels;
8
9
class ExternalCourseReport extends Mailable
10
{
11
    use Queueable, SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by App\Mail\ExternalCourseReport: $id, $relations, $class, $keyBy
Loading history...
12
13
    public function __construct(public $period_start, public $period_end, public $data)
14
    {
15
    }
16
17
    public function build()
18
    {
19
        return $this->subject('Facturation '.$this->data['partner_name'])->view('emails.external_courses_report');
20
    }
21
}
22