EnrollmentCourseUpdated   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
1
<?php
2
3
namespace App\Events;
4
5
use App\Models\Course;
6
use App\Models\Student;
7
use Illuminate\Broadcasting\InteractsWithSockets;
8
use Illuminate\Foundation\Events\Dispatchable;
9
use Illuminate\Queue\SerializesModels;
10
11
class EnrollmentCourseUpdated
12
{
13
    use Dispatchable, InteractsWithSockets, SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by App\Events\EnrollmentCourseUpdated: $id, $relations, $class, $connection, $keyBy
Loading history...
14
15
    // the ids must refer to lms_id (not the local ones)
16
    public function __construct(public Student $student, public Course $previousCourse, public Course $newCourse)
17
    {
18
        //
19
    }
20
}
21