Skip to content
PHP Ecosystem
Explore

UserIdentitySection

API reference › Debug Core › Panel › User › UserIdentitySection

final readonly classPHPForge\Debug\Panel\User\UserIdentitySection
Sourcesrc/Panel/User/UserIdentitySection.php

Typed view-model for one section in the user-identity card (Identity / Security / Timestamps / Other).

PropertyTypeDescriptionDefined by
$attributes readonly constructorlist<UserAttribute>Attribute rows rendered under the section header.UserIdentitySection
$icon readonly constructorstringSVG icon glyph emitted into the section header chip.UserIdentitySection
$label readonly constructorstringSection label shown in the section header (Identity, Security, …).UserIdentitySection
MethodDescriptionDefined by
__construct()Creates a section of user-identity attributes.UserIdentitySection
public function __construct(string $label, string $icon, array $attributes)

Creates a section of user-identity attributes.

Parameters

ParameterTypeDescription
$labelstring
$iconstring
$attributesarray