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

FormCredentials   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 3
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 38
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getUsername() 0 4 1
A getPlainPassword() 0 4 1
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