| Total Complexity | 3 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 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 | 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 |
||
| 29 | } |
||
| 30 | |||
| 31 | public function getUsername(): ?string |
||
| 36 |