Lines
100.00%
1 / 1
Methods
100.00%
1 / 1
Classes
100.00%
1 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| __construct | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| 29 | final readonly class UserPrivacy | |
| 30 | { | |
| 31 | public const string READ = 'user-privacy:read'; | |
| 32 | ||
| 33 | /** | |
| 34 | * @param list<string> $visibleParts ProfilePart values | |
| 35 | */ | |
| 36 | public function __construct( | |
| 37 | #[ApiProperty(identifier: true)] | |
| 38 | #[Groups([self::READ])] | |
| 39 | public int $id, | |
| 40 | #[Groups([self::READ])] | |
| 41 | public string $identifier, | |
| 42 | #[Groups([self::READ])] | |
| 43 | public string $role, | |
| 44 | #[Groups([self::READ])] | |
| 45 | public ?string $agentName, | |
| 46 | /** From the latest stats; null without stats. */ | |
| 47 | #[Groups([self::READ])] | |
| 48 | public ?string $faction, | |
| 49 | #[Groups([self::READ])] | |
| 50 | public ?int $level, | |
| 51 | #[Groups([self::READ])] | |
| 52 | public ?string $avatar, | |
| 53 | #[Groups([self::READ])] | |
| 54 | public array $visibleParts, | |
| 55 | #[Groups([self::READ])] | |
| 56 | public bool $visibilityChosen, | |
| 57 | ) { | |
| 58 | } | |
| 59 | } |