public function setMetrics($metrics) { $this->metrics = $this->convertToArrayIfString($metrics); return $this; }