init user
This commit is contained in:
parent
1f1a5cb827
commit
3411e8daf0
1 changed files with 23 additions and 0 deletions
23
app/User/User.php
Normal file
23
app/User/User.php
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
|
||||
namespace App\User;
|
||||
|
||||
use App\ValueObjects\EmailAddress;
|
||||
|
||||
class User
|
||||
{
|
||||
public function __construct(
|
||||
private int $id,
|
||||
private EmailAddress $email,
|
||||
) {}
|
||||
|
||||
public function getId(): int
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
public function getEmail(): EmailAddress
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue