create user repo interface
This commit is contained in:
parent
b23b939e9a
commit
00fbffd31e
1 changed files with 14 additions and 0 deletions
14
src/Repositories/UserRepository.php
Normal file
14
src/Repositories/UserRepository.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
namespace Yisroel\DigiWill\Repositories;
|
||||
|
||||
use Yisroel\DigiWill\Domain\User;
|
||||
|
||||
interface UserRepository
|
||||
{
|
||||
public function find(int $id): ?User;
|
||||
|
||||
public function findByEmail(string $email): ?User;
|
||||
|
||||
public function save(User $user): User;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue