Completed
Push — master ( f43dc3...ce13b1 )
by Hugues
02:12
created

ChangePassword::getUserId()   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\Command;
4
5
use HMLB\DDD\Entity\Identity;
6
7
/**
8
 * ChangePassword.
9
 *
10
 * @author Hugues Maignol <[email protected]>
11
 */
12
class ChangePassword extends UserCommand
13
{
14
    /**
15
     * @var string
16
     */
17
    protected $password;
18
19
    /**
20
     * @var Identity
21
     */
22
    protected $userId;
23
24
    public function __construct(string $password, Identity $userId)
25
    {
26
        $this->password = $password;
27
        $this->userId = $userId;
28
    }
29
30
    /**
31
     * @return string
32
     */
33
    public function getPassword(): string
34
    {
35
        return $this->password;
36
    }
37
38
    /**
39
     * @return Identity
40
     */
41
    public function getUserId(): Identity
42
    {
43
        return $this->userId;
44
    }
45
}
46