add email signup flow

This commit is contained in:
Yisroel Baum 2026-08-03 20:26:08 +03:00
parent 9945163a2f
commit 3dc9204979
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
27 changed files with 629 additions and 24 deletions

View file

@ -4,12 +4,12 @@ namespace App\User;
use App\Shared\ValueObject\EmailAddress;
final readonly class User
final class User
{
public function __construct(
private int $id,
private EmailAddress $email,
private string $passwordHash,
private ?string $passwordHash,
) {}
public function getId(): int
@ -22,8 +22,13 @@ final readonly class User
return $this->email;
}
public function getPasswordHash(): string
public function getPasswordHash(): ?string
{
return $this->passwordHash;
}
public function setPasswordHash(string $passwordHash): void
{
$this->passwordHash = $passwordHash;
}
}