Completed
Push — master ( 5a5b2e...66ec7e )
by Matze
04:12
created

AuthenticationDataVO::getPassword()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2
Metric Value
dl 0
loc 4
ccs 0
cts 0
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace BrainExe\Core\Authentication;
4
5
class AuthenticationDataVO
6
{
7
    /**
8
     * @var UserVO
9
     */
10
    private $userVo;
11
12
    /**
13
     * @var string
14
     */
15
    private $password;
16
17
    /**
18
     * @var string
19
     */
20
    public $oneTimeToken;
21
22
    /**
23
     * @param UserVO $userVo
24
     * @param string $password
25
     * @param string $oneTimeToken
26
     */
27 1
    public function __construct(UserVO $userVo, $password, $oneTimeToken)
28
    {
29 1
        $this->userVo       = $userVo;
30 1
        $this->password     = $password;
31 1
        $this->oneTimeToken = $oneTimeToken;
32 1
    }
33
34
    /**
35
     * @return UserVO
36
     */
37
    public function getUser() : UserVO
38
    {
39
        return $this->userVo;
40
    }
41
42
    /**
43
     * @return string
44
     */
45
    public function getOneTimeToken()
46
    {
47
        return $this->oneTimeToken;
48
    }
49
50
    /**
51
     * @return string
52
     */
53
    public function getPassword()
54
    {
55
        return $this->password;
56
    }
57
}
58