Completed
Push — master ( 6237c5...a918e3 )
by Beñat
03:07
created

ByInvitationWithConfirmationSignUpUserCommand::roles()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 4
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the BenGorUser package.
5
 *
6
 * (c) Beñat Espiña <[email protected]>
7
 * (c) Gorka Laucirica <[email protected]>
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
namespace BenGorUser\User\Application\Command\SignUp;
14
15
/**
16
 * By invitation with confirmation sign up user command class.
17
 *
18
 * @author Beñat Espiña <[email protected]>
19
 * @author Gorka Laucirica <[email protected]>
20
 */
21 View Code Duplication
class ByInvitationWithConfirmationSignUpUserCommand
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
22
{
23
    /**
24
     * The invitation token.
25
     *
26
     * @var string
27
     */
28
    private $invitationToken;
29
30
    /**
31
     * The plain password.
32
     *
33
     * @var string
34
     */
35
    private $plainPassword;
36
37
    /**
38
     * Constructor.
39
     *
40
     * @param string $anInvitationToken The invitation token
41
     * @param string $aPlainPassword    The plain password
42
     */
43
    public function __construct($anInvitationToken, $aPlainPassword)
44
    {
45
        $this->invitationToken = $anInvitationToken;
46
        $this->plainPassword = $aPlainPassword;
47
    }
48
49
    /**
50
     * Gets the invitation token.
51
     *
52
     * @return string
53
     */
54
    public function invitationToken()
55
    {
56
        return $this->invitationToken;
57
    }
58
59
    /**
60
     * Gets the user plain password.
61
     *
62
     * @return string
63
     */
64
    public function password()
65
    {
66
        return $this->plainPassword;
67
    }
68
}
69