# RequestDataNormalizer

> Narrows the request snapshot payload (alongside the controller summary array) into the typed PHPForge\Debug\Panel\Request\RequestView the detail view consumes.

[API reference](/docs/api/index.md) › [Debug Core](/docs/extensions/debug-core/reference/index.md) › [Panel](/docs/extensions/debug-core/reference/panel/index.md) › [Request](/docs/extensions/debug-core/reference/panel/request/index.md) › RequestDataNormalizer

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

Narrows the request snapshot payload (alongside the controller summary array) into the typed [`RequestView`](/docs/extensions/debug-core/reference/panel/request/requestview/index.md) the
detail view consumes.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`fromPanelData()`](#method-fromPanelData) static | Builds the typed [`RequestView`](/docs/extensions/debug-core/reference/panel/request/requestview/index.md) from the captured request data and the manifest entry. | `RequestDataNormalizer` |

## Method details

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

```php
public static function fromPanelData(array<array-key, mixed> $data, PHPForge\Debug\Storage\RequestSummary|null $summary): PHPForge\Debug\Panel\Request\RequestView
```

Builds the typed [`RequestView`](/docs/extensions/debug-core/reference/panel/request/requestview/index.md) from the captured request data and the manifest entry.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$data` | `array<array-key, mixed>` | Captured request data exposed by [`RequestSnapshot`](/docs/extensions/debug-core/reference/panel/request/requestsnapshot/index.md). |
| `$summary` | [`PHPForge\Debug\Storage\RequestSummary`](/docs/extensions/debug-core/reference/storage/requestsummary/index.md)`\|null` | Manifest entry for the loaded capture, when available. |

**Returns**

[`RequestView`](/docs/extensions/debug-core/reference/panel/request/requestview/index.md)