Completed
Push — master ( f021c8...431426 )
by Hugues
16:56
created

PasswordResetRequested::getResetToken()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace HMLB\UserBundle\Event;
4
5
use HMLB\DDD\Entity\Identity;
6
7
/**
8
 * PasswordResetRequested
9
 *
10
 * @author Hugues Maignol <[email protected]>
11
 */
12
final class PasswordResetRequested extends UserEvent
13
{
14
    /**
15
     * @var Identity
16
     */
17
    private $userId;
18
19
    /**
20
     * @var string
21
     */
22
    private $resetToken;
23
24
    public function __construct(Identity $userId, string $resetToken)
25
    {
26
        $this->userId = $userId;
27
        $this->resetToken = $resetToken;
28
    }
29
30
    /**
31
     * Getter de resetToken
32
     *
33
     * @return string
34
     */
35
    public function getResetToken()
36
    {
37
        return $this->resetToken;
38
    }
39
40
    /**
41
     * @return Identity
42
     */
43
    public function getUserId(): Identity
44
    {
45
        return $this->userId;
46
    }
47
}
48