Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Auth\Domain\Port\Driven; |
| 4 | |
| 5 | use App\Auth\Domain\Model\Identity; |
| 6 | use App\Shared\Domain\Model\EntityId; |
| 7 | |
| 8 | interface IdentityRepository |
| 9 | { |
| 10 | public function findByEmailOrUsername(string $email, string $username): ?Identity; |
| 11 | |
| 12 | public function findByIdentifier(string $identifier): ?Identity; |
| 13 | |
| 14 | public function findById(EntityId $id): ?Identity; |
| 15 | |
| 16 | public function findByEmail(string $email): ?Identity; |
| 17 | |
| 18 | public function save(Identity $identity): void; |
| 19 | } |