public function getTotalDuration() { $total = 0.0; foreach ($this->durations as $duration) { $total += $duration['value']; } return $total; }