Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
MemberSummary
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace App\Trip\Application\Port;
6
7/**
8 * Identity details of a member, resolved from the Identity context via the
9 * MemberDirectory port. Trip holds only ids; this carries the display fields.
10 */
11final readonly class MemberSummary
12{
13    public function __construct(
14        public string $id,
15        public string $email,
16        public string $name,
17        // Signed, expiring URL of the member's avatar, or null when they have none.
18        public ?string $avatarUrl = null,
19    ) {
20    }
21}