# ServerVariableGroup

> Groups captured server variables for the Request panel without changing their diagnostic values.

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

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

Groups captured server variables for the Request panel without changing their diagnostic values.

## Properties

| Property | Type | Description | Defined by |
| --- | --- | --- | --- |
| <span id="property-collapsed"></span>`$collapsed` readonly constructor | `bool` | Whether the group should be initially collapsed. Default: `false`. | `ServerVariableGroup` |
| <span id="property-entries"></span>`$entries` readonly constructor | `array<int\|string, mixed>` | Captured server variables within the group. | `ServerVariableGroup` |
| <span id="property-id"></span>`$id` readonly constructor | `string` | Identifier for the server variable group. | `ServerVariableGroup` |
| <span id="property-label"></span>`$label` readonly constructor | `string` | Human-readable label for the server variable group. | `ServerVariableGroup` |

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`__construct()`](#method-__construct) | Creates a group of captured server variables. | `ServerVariableGroup` |

## Method details

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

```php
public function __construct(string $id, string $label, array<int|string, mixed> $entries, bool $collapsed = false)
```

Creates a group of captured server variables.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$id` | `string` | Identifier for the server variable group. |
| `$label` | `string` | Human-readable label for the server variable group. |
| `$entries` | `array<int\|string, mixed>` | Captured server variables within the group. |
| `$collapsed` | `bool` | Whether the group should be initially collapsed. |