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

User   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 7
c 0
b 0
f 0
dl 0
loc 29
rs 10

3 Methods

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