# HistoryRow

> Typed view-model for one captured-request row in the History grid.

[API reference](/docs/api/index.md) › [Debug Core](/docs/extensions/debug-core/reference/index.md) › [View](/docs/extensions/debug-core/reference/view/index.md) › [History](/docs/extensions/debug-core/reference/view/history/index.md) › HistoryRow

| final readonly class | `PHPForge\Debug\View\History\HistoryRow` |
| --- | --- |
| Source | [`src/View/History/HistoryRow.php`](https://github.com/php-forge/debug-core/blob/main/src/View/History/HistoryRow.php#L14) |

Typed view-model for one captured-request row in the History grid.

## Properties

| Property | Type | Description | Defined by |
| --- | --- | --- | --- |
| <span id="property-ajax"></span>`$ajax` readonly constructor | `bool` | `true` when the captured request was an AJAX request. | `HistoryRow` |
| <span id="property-excessiveCallersCount"></span>`$excessiveCallersCount` readonly constructor | `int` | Number of callers issuing too many DB calls. '0' when not flagged. | `HistoryRow` |
| <span id="property-ip"></span>`$ip` readonly constructor | `string` | Client IP address. Empty when not captured. | `HistoryRow` |
| <span id="property-mailCount"></span>`$mailCount` readonly constructor | `int` | Number of mail messages sent during the request. '0' when not captured. | `HistoryRow` |
| <span id="property-method"></span>`$method` readonly constructor | `string` | HTTP method ('GET', 'POST', ...) or 'COMMAND' for console runs. Empty when not captured. | `HistoryRow` |
| <span id="property-peakMemory"></span>`$peakMemory` readonly constructor | `int\|null` | Peak memory in bytes; `null` when not captured. | `HistoryRow` |
| <span id="property-processingTime"></span>`$processingTime` readonly constructor | `float\|null` | Processing time in seconds (float); `null` when not captured. | `HistoryRow` |
| <span id="property-sqlCount"></span>`$sqlCount` readonly constructor | `int` | Number of SQL queries executed during the request. '0' when not captured. | `HistoryRow` |
| <span id="property-statusCode"></span>`$statusCode` readonly constructor | `int` | Response status code; `0` when not captured. | `HistoryRow` |
| <span id="property-tag"></span>`$tag` readonly constructor | `string` | Request tag (hex hash); empty when not captured. | `HistoryRow` |
| <span id="property-time"></span>`$time` readonly constructor | `float` | Request timestamp (unix seconds, may be float for sub-second precision); '0.0' when not captured. | `HistoryRow` |
| <span id="property-timeCompact"></span>`$timeCompact` readonly constructor | `string` | Formatted compact time ('HH:MM:SS'); empty when `$time === 0.0`. | `HistoryRow` |
| <span id="property-url"></span>`$url` readonly constructor | `string` | Full request URL. Empty when not captured. | `HistoryRow` |

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`__construct()`](#method-__construct) | Creates a captured-request row for the History grid. | `HistoryRow` |
| [`fromSummary()`](#method-fromSummary) static | Projects a manifest entry into the row the History grid renders. | `HistoryRow` |

## Method details

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

```php
public function __construct(string $tag, string $method, string $url, int $statusCode, float $time, string $timeCompact, float|null $processingTime, int|null $peakMemory, string $ip, int $sqlCount, int $mailCount, int $excessiveCallersCount, bool $ajax)
```

Creates a captured-request row for the History grid.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$tag` | `string` |  |
| `$method` | `string` |  |
| `$url` | `string` |  |
| `$statusCode` | `int` |  |
| `$time` | `float` |  |
| `$timeCompact` | `string` |  |
| `$processingTime` | `float\|null` |  |
| `$peakMemory` | `int\|null` |  |
| `$ip` | `string` |  |
| `$sqlCount` | `int` |  |
| `$mailCount` | `int` |  |
| `$excessiveCallersCount` | `int` |  |
| `$ajax` | `bool` |  |

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

```php
public static function fromSummary(PHPForge\Debug\Storage\RequestSummary $summary): self
```

Projects a manifest entry into the row the History grid renders.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$summary` | [`PHPForge\Debug\Storage\RequestSummary`](/docs/extensions/debug-core/reference/storage/requestsummary/index.md) |  |

**Returns**

`self`