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

RequestPasswordReset   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 20
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getUserId() 0 4 1
1
<?php
2
3
namespace HMLB\UserBundle\Command;
4
5
use HMLB\DDD\Entity\Identity;
6
7
/**
8
 * Request a password reset procedure after forgetting it.
9
 *
10
 * @author Hugues Maignol <[email protected]>
11
 */
12
final class RequestPasswordReset extends UserCommand
13
{
14
    /**
15
     * @var Identity
16
     */
17
    private $userId;
18
19
    public function __construct(Identity $userId)
20
    {
21
        $this->userId = $userId;
22
    }
23
24
    /**
25
     * @return Identity
26
     */
27
    public function getUserId(): Identity
28
    {
29
        return $this->userId;
30
    }
31
}
32