init user

This commit is contained in:
Yisroel Baum 2026-02-14 21:57:48 +02:00
parent 1f1a5cb827
commit 3411e8daf0
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

23
app/User/User.php Normal file
View 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;
}
}