Code Duplication    Length = 34-34 lines in 2 locations

src/Command/ChangePassword.php 1 location

@@ 12-45 (lines=34) @@
9
 *
10
 * @author Hugues Maignol <[email protected]>
11
 */
12
final class ChangePassword extends UserCommand
13
{
14
    /**
15
     * @var string
16
     */
17
    private $password;
18
19
    /**
20
     * @var Identity
21
     */
22
    private $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

src/Command/ConfirmEmail.php 1 location

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