Passed
Push — master ( 8c95d4...e694c7 )
by Torben
03:09 queued 11s
created

ChangePassword::setChangeHmac()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
declare(strict_types=1);
3
namespace Derhansen\FeChangePwd\Domain\Model\Dto;
4
5
/*
6
 * This file is part of the Extension "fe_change_pwd" for TYPO3 CMS.
7
 *
8
 * For the full copyright and license information, please read the
9
 * LICENSE.txt file that was distributed with this source code.
10
 */
11
12
/**
13
 * Class ChangePassword
14
 */
15
class ChangePassword
16
{
17
    /**
18
     * @var string
19
     */
20
    protected $password1 = '';
21
22
    /**
23
     * @var string
24
     */
25
    protected $password2 = '';
26
27
    /**
28
     * @var string
29
     */
30
    protected $currentPassword = '';
31
32
    /**
33
     * @var string
34
     */
35
    protected $changeHmac = '';
36
37
    /**
38
     * @return string
39
     */
40
    public function getPassword1()
41
    {
42
        return $this->password1;
43
    }
44
45
    /**
46
     * @param string $password1
47
     */
48
    public function setPassword1(string $password1)
49
    {
50
        $this->password1 = $password1;
51
    }
52
53
    /**
54
     * @return string
55
     */
56
    public function getPassword2()
57
    {
58
        return $this->password2;
59
    }
60
61
    /**
62
     * @param string $password2
63
     */
64
    public function setPassword2(string $password2)
65
    {
66
        $this->password2 = $password2;
67
    }
68
69
    /**
70
     * @return string
71
     */
72
    public function getCurrentPassword()
73
    {
74
        return $this->currentPassword;
75
    }
76
77
    /**
78
     * @param string $currentPassword
79
     */
80
    public function setCurrentPassword(string $currentPassword)
81
    {
82
        $this->currentPassword = $currentPassword;
83
    }
84
85
    /**
86
     * @return string
87
     */
88
    public function getChangeHmac(): string
89
    {
90
        return $this->changeHmac;
91
    }
92
93
    /**
94
     * @param string $changeHmac
95
     */
96
    public function setChangeHmac(string $changeHmac)
97
    {
98
        $this->changeHmac = $changeHmac;
99
    }
100
}
101