# HistoryMetricValues

> Immutable formatted values and outcome for one request-summary metric.

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

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

Immutable formatted values and outcome for one request-summary metric.

## Properties

| Property | Type | Description | Defined by |
| --- | --- | --- | --- |
| <span id="property-baseline"></span>`$baseline` readonly constructor | `string` | Formatted baseline value. | `HistoryMetricValues` |
| <span id="property-delta"></span>`$delta` readonly constructor | `string` | Formatted difference from baseline to target. | `HistoryMetricValues` |
| <span id="property-target"></span>`$target` readonly constructor | `string` | Formatted target value. | `HistoryMetricValues` |
| <span id="property-trend"></span>`$trend` readonly constructor | `string` | Directional CSS vocabulary (`up`, `down`, or `neutral`). | `HistoryMetricValues` |

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`__construct()`](#method-__construct) | Creates the formatted values and trend for one request metric. | `HistoryMetricValues` |

## Method details

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

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

Creates the formatted values and trend for one request metric.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$baseline` | `string` | Formatted baseline value. |
| `$target` | `string` | Formatted target value. |
| `$delta` | `string` | Formatted difference from baseline to target. |
| `$trend` | `string` | Directional CSS vocabulary (`up`, `down`, or `neutral`). |