Code Duplication    Length = 34-34 lines in 2 locations

src/Command/ChangePassword.php 1 location

@@ 14-47 (lines=34) @@
11
 *
12
 * @author Hugues Maignol <[email protected]>
13
 */
14
final class ChangePassword extends UserCommand
15
{
16
    /**
17
     * @var string
18
     */
19
    private $password;
20
21
    /**
22
     * @var Identity
23
     */
24
    private $userId;
25
26
    public function __construct(string $password, Identity $userId)
27
    {
28
        $this->password = $password;
29
        $this->userId = $userId;
30
    }
31
32
    /**
33
     * @return string
34
     */
35
    public function getPassword(): string
36
    {
37
        return $this->password;
38
    }
39
40
    /**
41
     * @return Identity
42
     */
43
    public function getUserId(): Identity
44
    {
45
        return $this->userId;
46
    }
47
}
48

src/Command/ConfirmEmail.php 1 location

@@ 14-47 (lines=34) @@
11
 *
12
 * @author Hugues Maignol <[email protected]>
13
 */
14
final class ConfirmEmail extends UserCommand
15
{
16
    /**
17
     * @var string
18
     */
19
    private $confirmationToken;
20
21
    /**
22
     * @var Identity
23
     */
24
    private $userId;
25
26
    public function __construct(string $confirmationToken, Identity $userId)
27
    {
28
        $this->confirmationToken = $confirmationToken;
29
        $this->userId = $userId;
30
    }
31
32
    /**
33
     * @return string
34
     */
35
    public function getConfirmationToken(): string
36
    {
37
        return $this->confirmationToken;
38
    }
39
40
    /**
41
     * @return Identity
42
     */
43
    public function getUserId(): Identity
44
    {
45
        return $this->userId;
46
    }
47
}
48