Total Complexity | 3 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
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 | * @param null|int|string $id |
||
21 | * @param null|string $username |
||
22 | */ |
||
23 | public function __construct($id = null, ?string $username = null) |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @return null|int|string |
||
31 | */ |
||
32 | public function getId() |
||
33 | { |
||
34 | return $this->id; |
||
35 | } |
||
36 | |||
37 | public function getUsername(): ?string |
||
40 | } |
||
41 | } |
||
42 |