add id to user
This commit is contained in:
parent
20cc34ca1e
commit
4ab2748498
1 changed files with 7 additions and 0 deletions
|
|
@ -4,5 +4,12 @@ namespace DigiWill\Domain;
|
||||||
|
|
||||||
class User
|
class User
|
||||||
{
|
{
|
||||||
|
public function __construct(
|
||||||
|
private ?int $id
|
||||||
|
) {}
|
||||||
|
|
||||||
|
public function getId(): ?int
|
||||||
|
{
|
||||||
|
return $this->id;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue