# RequestTab

> Typed view-model for one tab in 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) › RequestTab

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

Typed view-model for one tab in the Request panel detail view.

## Properties

| Property | Type | Description | Defined by |
| --- | --- | --- | --- |
| <span id="property-id"></span>`$id` readonly constructor | `string` | Stable semantic identifier used to compose the shared Request view without coupling adapters to translated presentation labels. Default: `''`. | `RequestTab` |
| <span id="property-label"></span>`$label` readonly constructor | `string` | Navigation label shown in the tab strip (`'Parameters'`, `'Headers'`, `'Session'`, `'Server'`). | `RequestTab` |
| <span id="property-sections"></span>`$sections` readonly constructor | `list<`[`RequestSection`](/docs/extensions/debug-core/reference/panel/request/requestsection/index.md)`>` | Sections rendered when this tab is active, in display order. | `RequestTab` |

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`__construct()`](#method-__construct) | Creates a tab for the Request panel. | `RequestTab` |

## Method details

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

```php
public function __construct(string $label, array $sections, string $id = '')
```

Creates a tab for the Request panel.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$label` | `string` |  |
| `$sections` | `array` |  |
| `$id` | `string` |  |