Passed
Push — master ( 419604...046546 )
by Paweł
03:31
created

UserPasswordChangeRequestEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

2 Methods

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