# HistoryPanelStates

> Immutable baseline and target capture states for one panel.

[API reference](/docs/api/index.md) › [Yii3 Debug](/docs/extensions/yii3-debug/reference/index.md) › [Comparison](/docs/extensions/yii3-debug/reference/comparison/index.md) › HistoryPanelStates

| final readonly class | `Yii3\Debug\Comparison\HistoryPanelStates` |
| --- | --- |
| Source | [`src/Comparison/HistoryPanelStates.php`](https://github.com/yii3/debug/blob/main/src/Comparison/HistoryPanelStates.php#L10) |

Immutable baseline and target capture states for one panel.

## Properties

| Property | Type | Description | Defined by |
| --- | --- | --- | --- |
| <span id="property-baseline"></span>`$baseline` readonly constructor | `string` | State of the panel in the baseline capture. | `HistoryPanelStates` |
| <span id="property-target"></span>`$target` readonly constructor | `string` | State of the panel in the target capture. | `HistoryPanelStates` |

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`__construct()`](#method-__construct) | Creates the baseline and target states for one panel. | `HistoryPanelStates` |

## Method details

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

```php
public function __construct(string $baseline, string $target)
```

Creates the baseline and target states for one panel.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$baseline` | `string` | State of the panel in the baseline capture. |
| `$target` | `string` | State of the panel in the target capture. |