# RequestDiagnosticLedger

> Builds the shared yii-debug-diagnostic-ledger used by the Request headers and server-variable panes.

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

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

Builds the shared `yii-debug-diagnostic-ledger` used by the Request headers and server-variable panes.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`render()`](#method-render) static | Renders the ledger holding the supplied rows. | `RequestDiagnosticLedger` |
| [`row()`](#method-row) static | Builds one filterable ledger row from already-escaped term and description markup. | `RequestDiagnosticLedger` |

## Method details

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

```php
public static function render(string $modifier, UIAwesome\Html\Flow\Div ...$rows): string
```

Renders the ledger holding the supplied rows.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$modifier` | `string` | Extra CSS classes appended after the shared ledger class. |
| `...$rows` | [`UIAwesome\Html\Flow\Div`](/docs/extensions/html/reference/flow/div/index.md) | Ledger rows in capture order. |

**Returns**

`string`: Ledger markup.

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

```php
public static function row(string $term, string $description, string $modifier = ''): UIAwesome\Html\Flow\Div
```

Builds one filterable ledger row from already-escaped term and description markup.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$term` | `string` | Escaped entry name. |
| `$description` | `string` | Rendered entry value. |
| `$modifier` | `string` | Extra CSS classes appended after the shared row class, or `''` to add none. |

**Returns**

[`UIAwesome\Html\Flow\Div`](/docs/extensions/html/reference/flow/div/index.md): Ledger row element.