# UserIdentitySection

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

[API reference](/docs/api/index.md) › [Debug Core](/docs/extensions/debug-core/reference/index.md) › [Panel](/docs/extensions/debug-core/reference/panel/index.md) › [User](/docs/extensions/debug-core/reference/panel/user/index.md) › UserIdentitySection

| final readonly class | `PHPForge\Debug\Panel\User\UserIdentitySection` |
| --- | --- |
| Source | [`src/Panel/User/UserIdentitySection.php`](https://github.com/php-forge/debug-core/blob/main/src/Panel/User/UserIdentitySection.php#L10) |

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

## Properties

| Property | Type | Description | Defined by |
| --- | --- | --- | --- |
| <span id="property-attributes"></span>`$attributes` readonly constructor | `list<`[`UserAttribute`](/docs/extensions/debug-core/reference/panel/user/userattribute/index.md)`>` | Attribute rows rendered under the section header. | `UserIdentitySection` |
| <span id="property-icon"></span>`$icon` readonly constructor | `string` | SVG icon glyph emitted into the section header chip. | `UserIdentitySection` |
| <span id="property-label"></span>`$label` readonly constructor | `string` | Section label shown in the section header (`Identity`, `Security`, ...). | `UserIdentitySection` |

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`__construct()`](#method-__construct) | Creates a section of user-identity attributes. | `UserIdentitySection` |

## Method details

### __construct() <span id="method-__construct"></span>

```php
public function __construct(string $label, string $icon, array $attributes)
```

Creates a section of user-identity attributes.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$label` | `string` |  |
| `$icon` | `string` |  |
| `$attributes` | `array` |  |