Skip to content
PHP Ecosystem
Explore

UserDataNormalizer

API reference › Debug Core › Panel › User › UserDataNormalizer

final classPHPForge\Debug\Panel\User\UserDataNormalizer
Sourcesrc/Panel/User/UserDataNormalizer.php

Narrows the captured identity payload into the typed UserIdentityView.

MethodDescriptionDefined by
fromIdentity() staticBuilds the typed identity view-model from the raw attribute map and the optional label map.UserDataNormalizer
public static function fromIdentity(array<string, string> $identity, array<int, array{attribute: string, label: string}>|null $attributes): PHPForge\Debug\Panel\User\UserIdentityView

Builds the typed identity view-model from the raw attribute map and the optional label map.

Parameters

ParameterTypeDescription
$identityarray<string, string>Raw identity attribute map.
$attributesarray<int, array{attribute: string, label: string}>|nullOptional label map from the user panel, or null when no labels were supplied.

Returns

UserIdentityView