Passed
Push — master ( 8001cb...0d19a8 )
by Damien
03:58
created

User::getUsername()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace DH\Auditor\User;
4
5
class User implements UserInterface
6
{
7
    /**
8
     * @var null|int|string
9
     */
10
    protected $id;
11
12
    /**
13
     * @var null|string
14
     */
15
    protected $username;
16
17
    /**
18
     * User constructor.
19
     */
20
    public function __construct(?string $id = null, ?string $username = null)
21
    {
22
        $this->id = $id;
23
        $this->username = $username;
24
    }
25
26
    public function getIdentifier(): ?string
27
    {
28
        return $this->id;
29
    }
30
31
    public function getUsername(): ?string
32
    {
33
        return $this->username;
34
    }
35
}
36