# UserIdentityView

> Typed top-level view-model for the user-identity card (hero + per-section attribute lists).

[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) › UserIdentityView

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

Typed top-level view-model for the user-identity card (hero + per-section attribute lists).

## Properties

| Property | Type | Description | Defined by |
| --- | --- | --- | --- |
| <span id="property-hero"></span>`$hero` readonly constructor | [`UserIdentityHero`](/docs/extensions/debug-core/reference/panel/user/useridentityhero/index.md) | Hero card view-model. | `UserIdentityView` |
| <span id="property-sections"></span>`$sections` readonly constructor | `list<`[`UserIdentitySection`](/docs/extensions/debug-core/reference/panel/user/useridentitysection/index.md)`>` | Section view-models in display order; empty sections are filtered out by the normalizer. | `UserIdentityView` |

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`__construct()`](#method-__construct) | Creates the user-identity card view. | `UserIdentityView` |

## Method details

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

```php
public function __construct(PHPForge\Debug\Panel\User\UserIdentityHero $hero, array $sections)
```

Creates the user-identity card view.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$hero` | [`UserIdentityHero`](/docs/extensions/debug-core/reference/panel/user/useridentityhero/index.md) |  |
| `$sections` | `array` |  |