Add display_name (unique) and email_confirmed_at columns plus matching getters, DTO fields, repo methods (findByDisplayName, update), and migration. Existing auth tests updated to construct User with the new params.
18 lines
373 B
PHP
18 lines
373 B
PHP
<?php
|
|
|
|
namespace App\User;
|
|
|
|
use App\Shared\ValueObject\EmailAddress;
|
|
|
|
interface UserRepository
|
|
{
|
|
public function create(CreateUserDto $dto): User;
|
|
|
|
public function find(int $id): ?User;
|
|
|
|
public function findByEmail(EmailAddress $email): ?User;
|
|
|
|
public function findByDisplayName(string $displayName): ?User;
|
|
|
|
public function update(User $user): User;
|
|
}
|