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
AdminActor
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\Domain\Auth\Data;
6
7/**
8 * The authenticated admin performing a customer-account action, captured for
9 * the audit trail (FSC-124). Built by the action from JWT request attributes
10 * and passed into the service so business logic stays request-agnostic.
11 */
12final readonly class AdminActor
13{
14    public function __construct(
15        public int $userId,
16        public string $username,
17        public ?string $ipAddress,
18        public ?string $userAgent,
19    ) {}
20}