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

UserChangepasswordEvent::getPlainPassword()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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
}