lib/Model/Variant.php
public function getMetricValues($resultClass, $metricName)
    {
        $values = [];

        foreach ($this->iterations as $iteration) {
            if ($iteration->hasResult($resultClass)) {
                $values[] = $iteration->getMetric($resultClass, $metricName);
            }
        }

        return $values;
    }
public function getMetricValues($resultClass, $metricName)
    {
        $values = [];

        foreach ($this->iterations as $iteration) {
            if ($iteration->hasResult($resultClass)) {
                $values[] = $iteration->getMetric($resultClass, $metricName);
            }
        }

        return $values;
    }
public function getMetricValues ( $ resultClass , $ metricName ) { $ values = [ ] ; foreach ( $ this -> iterations as $ iteration ) { if ( $ iteration -> hasResult ( $ resultClass ) ) { $ values [ ] = $ iteration -> getMetric ( $ resultClass , $ metricName ) ; } } return $ values ; }
Return result values by class and metric name.

e.g.

```
$variant->getMetricValues(ComputedResult::class, 'z_value');
```

@return mixed[]
Return result values by class and metric name .