# RequestView

> Top-level typed view-model for the Request panel detail view.

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

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

Top-level typed view-model for the Request panel detail view.

## Properties

| Property | Type | Description | Defined by |
| --- | --- | --- | --- |
| <span id="property-hero"></span>`$hero` readonly constructor | [`RequestHero`](/docs/extensions/debug-core/reference/panel/request/requesthero/index.md) | Hero header view-model. | `RequestView` |
| <span id="property-tabs"></span>`$tabs` readonly constructor | `list<`[`RequestTab`](/docs/extensions/debug-core/reference/panel/request/requesttab/index.md)`>` | Tab view-models in display order; the first tab is rendered active by the section renderer. | `RequestView` |

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`__construct()`](#method-__construct) | Creates the composed Request panel view. | `RequestView` |

## Method details

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

```php
public function __construct(PHPForge\Debug\Panel\Request\RequestHero $hero, array $tabs)
```

Creates the composed Request panel view.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$hero` | [`RequestHero`](/docs/extensions/debug-core/reference/panel/request/requesthero/index.md) |  |
| `$tabs` | `array` |  |