/** * {@inheritdoc} */ public function getLeadingParticipantByElapsedTime($lap_number) { // There is cache if (array_key_exists($lap_number, $this->cache_leading_participant_by_elapsed_time)) { return $this->cache_leading_participant_by_elapsed_time[$lap_number]; } // Return and cache it return $this->cache_leading_participant_by_elapsed_time[$lap_number] = parent::getLeadingParticipantByElapsedTime($lap_number); }