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

UserCredentials::getUsername()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 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