protected function getNumericValue($property) { return $property === 'time' ? floatval($this->accumulate('getTotalTime')) : intval($this->accumulate('getTotal' . ucfirst($property))); }