Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace App\Identity\Domain; |
| 6 | |
| 7 | use App\Identity\Domain\ValueObject\Email; |
| 8 | use App\Identity\Domain\ValueObject\UserId; |
| 9 | |
| 10 | interface UserRepository |
| 11 | { |
| 12 | public function save(User $user): void; |
| 13 | |
| 14 | public function remove(User $user): void; |
| 15 | |
| 16 | public function ofId(UserId $id): ?User; |
| 17 | |
| 18 | public function ofEmail(Email $email): ?User; |
| 19 | |
| 20 | public function existsByEmail(Email $email): bool; |
| 21 | |
| 22 | /** @return list<User> */ |
| 23 | public function paginate(int $offset, int $limit): array; |
| 24 | |
| 25 | public function count(): int; |
| 26 | } |