FormCredentials   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 24
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
    public function __construct(string $username, string $plainPassword)
14
    {
15
        $this->username = $username;
16
        $this->plainPassword = $plainPassword;
17
    }
18
19
    public function getUsername(): string
20
    {
21
        return $this->username;
22
    }
23
24
    public function getPlainPassword(): string
25
    {
26
        return $this->plainPassword;
27
    }
28
}
29