HistoryMetricValues
API reference › Yii3 Debug › Comparison › HistoryMetricValues
Immutable formatted values and outcome for one request-summary metric.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$baseline readonly constructor | string | Formatted baseline value. | HistoryMetricValues |
$delta readonly constructor | string | Formatted difference from baseline to target. | HistoryMetricValues |
$target readonly constructor | string | Formatted target value. | HistoryMetricValues |
$trend readonly constructor | string | Directional CSS vocabulary (up, down, or neutral). | HistoryMetricValues |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates the formatted values and trend for one request metric. | HistoryMetricValues |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”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). |