add find by email to user repository
This commit is contained in:
parent
b2fc6a7ded
commit
ee271e162e
1 changed files with 2 additions and 0 deletions
|
|
@ -3,9 +3,11 @@
|
|||
namespace App\User;
|
||||
|
||||
use App\User\UseCases\CreateUserDto;
|
||||
use App\ValueObjects\EmailAddress;
|
||||
|
||||
interface UserRepository
|
||||
{
|
||||
public function create(CreateUserDto $dto): User;
|
||||
public function find(int $id): ?User;
|
||||
public function findByEmail(EmailAddress $email): ?User;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue