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\IdentityProvider; |
| 8 | |
| 9 | interface UserIdentityRepository |
| 10 | { |
| 11 | public function save(UserIdentity $identity): void; |
| 12 | |
| 13 | // No remove(): identities die with their user through the FK CASCADE. |
| 14 | public function ofProviderSubject(IdentityProvider $provider, string $subject): ?UserIdentity; |
| 15 | } |