Completed
Push — master ( 2afc29...29656f )
by Philip
06:07
created

UserCredentials   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 32
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getUsername() 0 4 1
A setUsername() 0 4 1
A getPassword() 0 4 1
A setPassword() 0 4 1
1
<?php
2
3
namespace Dontdrinkandroot\RestBundle\Model;
4
5
use Symfony\Component\Validator\Constraints as Assert;
6
7
/**
8
 * @author Philip Washington Sorst <[email protected]>
9
 */
10
class UserCredentials
11
{
12
    /**
13
     * @var string|null
14
     */
15
    private $username;
16
17
    /**
18
     * @var string|null
19
     */
20
    private $password;
21
22 2
    public function getUsername(): ?string
23
    {
24 2
        return $this->username;
25
    }
26
27 2
    public function setUsername(?string $username)
28
    {
29 2
        $this->username = $username;
30 2
    }
31
32 2
    public function getPassword(): ?string
33
    {
34 2
        return $this->password;
35
    }
36
37 2
    public function setPassword(?string $password)
38
    {
39 2
        $this->password = $password;
40 2
    }
41
}
42