add is admin to user entity

This commit is contained in:
Yisroel Baum 2026-04-24 13:14:48 +03:00
parent affa1e7b1b
commit 0e86af3e81
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -9,6 +9,7 @@ class User
public function __construct(
private int $id,
private EmailAddress $email,
private bool $isAdmin = false,
) {}
public function getId(): int
@ -20,4 +21,9 @@ class User
{
return $this->email;
}
public function isAdmin(): bool
{
return $this->isAdmin;
}
}