Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | |
100.00% |
4 / 4 |
|
100.00% |
4 / 4 |
|
100.00% |
4 / 4 |
|
100.00% |
4 / 4 |
CRAP | |
100.00% |
1 / 1 |
| IdentityInfo | |
100.00% |
4 / 4 |
|
100.00% |
4 / 4 |
|
100.00% |
4 / 4 |
|
100.00% |
4 / 4 |
4 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getIdentityId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getEmail | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getUsername | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Notification\Domain\Model; |
| 4 | |
| 5 | /** |
| 6 | * @author Wilhelm Zwertvaegher |
| 7 | */ |
| 8 | final readonly class IdentityInfo |
| 9 | { |
| 10 | public function __construct( |
| 11 | private readonly string $identityId, |
| 12 | private readonly string $email, |
| 13 | private readonly string $username |
| 14 | ) { |
| 15 | } |
| 16 | |
| 17 | public function getIdentityId(): string |
| 18 | { |
| 19 | return $this->identityId; |
| 20 | } |
| 21 | |
| 22 | public function getEmail(): string |
| 23 | { |
| 24 | return $this->email; |
| 25 | } |
| 26 | |
| 27 | public function getUsername(): string |
| 28 | { |
| 29 | return $this->username; |
| 30 | } |
| 31 | } |