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

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