PasswordResetRequested   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 36
rs 10
c 0
b 0
f 0

3 Methods

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