Completed
Push — master ( 504537...babb2f )
by Torben
04:05
created

ChangePassword   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 63
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 6
eloc 10
c 2
b 0
f 0
dl 0
loc 63
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getCurrentPassword() 0 3 1
A setPassword1() 0 3 1
A getPassword2() 0 3 1
A setCurrentPassword() 0 3 1
A getPassword1() 0 3 1
A setPassword2() 0 3 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
     * @return string
34
     */
35
    public function getPassword1()
36
    {
37
        return $this->password1;
38
    }
39
40
    /**
41
     * @param string $password1
42
     */
43
    public function setPassword1(string $password1)
44
    {
45
        $this->password1 = $password1;
46
    }
47
48
    /**
49
     * @return string
50
     */
51
    public function getPassword2()
52
    {
53
        return $this->password2;
54
    }
55
56
    /**
57
     * @param string $password2
58
     */
59
    public function setPassword2(string $password2)
60
    {
61
        $this->password2 = $password2;
62
    }
63
64
    /**
65
     * @return string
66
     */
67
    public function getCurrentPassword()
68
    {
69
        return $this->currentPassword;
70
    }
71
72
    /**
73
     * @param string $currentPassword
74
     */
75
    public function setCurrentPassword(string $currentPassword)
76
    {
77
        $this->currentPassword = $currentPassword;
78
    }
79
}
80