NewCourseAddedEvent   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Event;
6
7
use App\Model\CourseInterface;
8
use App\Model\UserInterface;
9
use Symfony\Contracts\EventDispatcher\Event;
10
11
final class NewCourseAddedEvent extends Event
12
{
13
    public UserInterface $user;
14
    public CourseInterface $course;
15
16
    public function __construct(UserInterface $user, CourseInterface $course)
17
    {
18
        $this->user = $user;
19
        $this->course = $course;
20
    }
21
}
22