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\Application\Port; |
| 6 | |
| 7 | /** |
| 8 | * A reactor other contexts implement to run before a user row is deleted (and |
| 9 | * its FK cascade fires). Identity iterates every tagged reactor, synchronously |
| 10 | * in the same request, just before removing the user — so a context can |
| 11 | * reassign or clean up what would otherwise be cascade-deleted. |
| 12 | * |
| 13 | * Symmetric to Trip's MemberDirectory: the deleting context declares the seam, |
| 14 | * the reacting context implements it, refs by bare string id (no VO leak). |
| 15 | * A synchronous port, not a domain event — there is no message bus yet. |
| 16 | */ |
| 17 | interface PreUserDeletion |
| 18 | { |
| 19 | public function onUserDeletion(string $userId): void; |
| 20 | } |