UserDataNormalizer
API reference › Debug Core › Panel › User › UserDataNormalizer
Narrows the captured identity payload into the typed UserIdentityView.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
fromIdentity() static | Builds the typed identity view-model from the raw attribute map and the optional label map. | UserDataNormalizer |
Method details
Section titled “Method details”fromIdentity()
Section titled “fromIdentity() ”public static function fromIdentity(array<string, string> $identity, array<int, array{attribute: string, label: string}>|null $attributes): PHPForge\Debug\Panel\User\UserIdentityViewBuilds the typed identity view-model from the raw attribute map and the optional label map.
Parameters
| Parameter | Type | Description |
|---|---|---|
$identity | array<string, | Raw identity attribute map. |
$attributes | array<int, | Optional label map from the user panel, or null when no labels were supplied. |
Returns