Completed
Push — master ( 8f86ae...511c48 )
by Wouter
02:18
created

FormCredentials::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace SumoCoders\FrameworkMultiUserBundle\Security;
4
5
class FormCredentials
6
{
7
    /** @var string */
8
    private $plainPassword;
9
10
    /** @var string */
11
    private $username;
12
13
    /**
14
     * @param string $username
15
     * @param string $plainPassword
16
     */
17
    public function __construct($username, $plainPassword)
18
    {
19
        $this->username = $username;
20
        $this->plainPassword = $plainPassword;
21
    }
22
23
    /**
24
     * Returns the username
25
     *
26
     * @return string
27
     */
28
    public function getUsername()
29
    {
30
        return $this->username;
31
    }
32
33
    /**
34
     * Returns the plain password
35
     *
36
     * @return string
37
     */
38
    public function getPlainPassword()
39
    {
40
        return $this->plainPassword;
41
    }
42
}
43