Skip to content
PHP Ecosystem
Explore

HistoryMetricValues

API reference › Yii3 Debug › Comparison › HistoryMetricValues

final readonly classYii3\Debug\Comparison\HistoryMetricValues
Sourcesrc/Comparison/HistoryMetricValues.php

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

PropertyTypeDescriptionDefined by
$baseline readonly constructorstringFormatted baseline value.HistoryMetricValues
$delta readonly constructorstringFormatted difference from baseline to target.HistoryMetricValues
$target readonly constructorstringFormatted target value.HistoryMetricValues
$trend readonly constructorstringDirectional CSS vocabulary (up, down, or neutral).HistoryMetricValues
MethodDescriptionDefined by
__construct()Creates the formatted values and trend for one request metric.HistoryMetricValues
public function __construct(string $baseline, string $target, string $delta, string $trend)

Creates the formatted values and trend for one request metric.

Parameters

ParameterTypeDescription
$baselinestringFormatted baseline value.
$targetstringFormatted target value.
$deltastringFormatted difference from baseline to target.
$trendstringDirectional CSS vocabulary (up, down, or neutral).