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\Trip\Application\Port; |
| 6 | |
| 7 | use App\Trip\Domain\ValueObject\MemberId; |
| 8 | |
| 9 | /** |
| 10 | * Seam to the Identity context: resolve an email to a user id (to invite by |
| 11 | * email) and fetch display identities for a set of member ids (to render the |
| 12 | * members panel / inbox). Implemented by an adapter in Identity — no ORM |
| 13 | * association and no id-VO import across contexts. |
| 14 | */ |
| 15 | interface MemberDirectory |
| 16 | { |
| 17 | public function findIdByEmail(string $email): ?MemberId; |
| 18 | |
| 19 | /** |
| 20 | * @param list<MemberId> $ids |
| 21 | * |
| 22 | * @return array<string, MemberSummary> keyed by member id (missing ids are omitted) |
| 23 | */ |
| 24 | public function summariesOf(array $ids): array; |
| 25 | } |