Example #1
0
 /**
  * {@inheritdoc}
  */
 public function getBestLapByLapNumber($lap_number)
 {
     // There is cache
     if (array_key_exists($lap_number, $this->cache_best_lap_by_lap_number)) {
         return $this->cache_best_lap_by_lap_number[$lap_number];
     }
     return $this->cache_best_lap_by_lap_number[$lap_number] = parent::getBestLapByLapNumber($lap_number);
 }