WithoutOldPasswordChangeUserPasswordCommand   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 48
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A email() 0 4 1
A newPlainPassword() 0 4 1
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\ChangePassword;
14
15
/**
16
 * Without old password change user password command class.
17
 *
18
 * @author Beñat Espiña <[email protected]>
19
 * @author Gorka Laucirica <[email protected]>
20
 */
21
class WithoutOldPasswordChangeUserPasswordCommand
22
{
23
    /**
24
     * The user email.
25
     *
26
     * @var string
27
     */
28
    private $email;
29
30
    /**
31
     * The new plain password.
32
     *
33
     * @var string
34
     */
35
    private $newPlainPassword;
36
37
    /**
38
     * Constructor.
39
     *
40
     * @param string $anEmail           The user email
41
     * @param string $aNewPlainPassword The new plain password
42
     */
43
    public function __construct($anEmail, $aNewPlainPassword)
44
    {
45
        $this->email = $anEmail;
46
        $this->newPlainPassword = $aNewPlainPassword;
47
    }
48
49
    /**
50
     * Gets the user email.
51
     *
52
     * @return string
53
     */
54
    public function email()
55
    {
56
        return $this->email;
57
    }
58
59
    /**
60
     * Gets the new plain password.
61
     *
62
     * @return string
63
     */
64
    public function newPlainPassword()
65
    {
66
        return $this->newPlainPassword;
67
    }
68
}
69