private function updateProjectMetrics($id) { foreach ($this->metrics[$id] as $metric => $value) { $this->projectMetrics[$metric] += $value; } }