Test Failed
Push — develop ( 01b725...e43081 )
by Stone
04:47
created

UserChangepasswordEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPlainPassword() 0 3 1
A __construct() 0 5 1
1
<?php
2
3
namespace App\Event\User;
4
5
use App\Entity\User;
6
7
class UserChangepasswordEvent extends UserEvent
8
{
9
    const NAME = 'user.changepassword';
10
11
    private $plainPassword;
12
13
    public function __construct(User $entity, string $plainPassword)
14
    {
15
        parent::__construct($entity);
16
17
        $this->plainPassword = $plainPassword;
18
    }
19
20
    /**
21
     * @return string
22
     */
23
    public function getPlainPassword(): string
24
    {
25
        return $this->plainPassword;
26
    }
27
28
}